Package com.iizix.urn

Interface IURNProvider

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and TypeMethodDescription
      NIDgetNID()
      Gets the Naming IDentifier of the provider.
      java.util.List<URNResourceType>getResourceTypes()
      Gets the URN Resource Type supported by the provider.
      default java.lang.StringparamString0()
      Returns a parameter string part used to produce the "toString()" or "paramString()".
      URNparse​(java.lang.String urnString, java.lang.String nss, java.lang.String req, java.lang.String query, java.lang.String fragment)
      Parses the URN after the NID specification, i.e.
    • Method Detail

      • getNID

        NID getNID()
        Gets the Naming IDentifier of the provider.
        Returns:
        The NID.
      • getResourceTypes

        java.util.List<URNResourceType> getResourceTypes()
        Gets the URN Resource Type supported by the provider.
        Returns:
        The supported resource type, empty list when not resource based.
      • parse

        URN parse​(java.lang.String urnString,
                  java.lang.String nss,
                  java.lang.String req,
                  java.lang.String query,
                  java.lang.String fragment)
           throws URNException
        Parses the URN after the NID specification, i.e. after "urn:NID:".
        Parameters:
        urnString - The full unparsed original URN string.
        nss - The NSS part of the string (before request/query/fragment).
        req - The decoded request String (without "?+"), null for none.
        query - The decoded query String (without "?="), null for none.
        fragment - The decoded fragment, null for none.
        Returns:
        The URN instance.
        Throws:
        URNException - For URN exceptions.
      • paramString0

        default java.lang.String paramString0()
        Returns a parameter string part used to produce the "toString()" or "paramString()".
        Returns:
        A part of the string for the provider type.