Class ImageURNProvider

    • Method Detail

      • getInstance

        public static ImageURNProvider getInstance()
        Gets the singleton instance of the Image URN provider.
        The provider.
      • getNID

        public NID getNID()
        Gets the Naming IDentifier of the provider.
        Specified by:
        getNID in interface IURNProvider
        The NID.
      • getResourceTypes

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

        public 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:".
        Specified by:
        parse in interface IURNProvider
        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.
        The URN instance.
        URNException - For URN exceptions.
      • getImageTarget

        public IImageTarget getImageTarget​(URNResourceType type,
                                           java.lang.String name)
        Gets the image target reference.
        Specified by:
        getImageTarget in interface IImageURNProvider
        type - The type of URN request.
        name - The name of the image.
        The image target reference, of null if not found.