Package com.iizix.urn.url
Class URL_URNFactory
java.lang.Object
com.iizix.urn.url.URL_URNFactory
- All Implemented Interfaces:
IURNProvider
URL provider for external URL's.
- Author:
- Christopher Mindus
Method Summary
Modifier and TypeMethodDescriptionstatic URL_URNFactoryGets the singleton instance of the URL URN factory.getNID()Gets the Naming IDentifier of the provider.Gets the location or locations supported by the provider.static voidinitialize(URNFactory factory) Initializes the URL URN factory.Parses the URN after the NID specification, i.e.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.iizix.urn.IURNProvider
paramString0
Method Details
initialize
Initializes the URL URN factory.- Parameters:
factory- The URN factory instance.
getInstance
Gets the singleton instance of the URL URN factory.- Returns:
- The URL URN factory instance.
getNID
Gets the Naming IDentifier of the provider.- Specified by:
getNIDin interfaceIURNProvider- Returns:
- The
NID.URL.
getResourceTypes
Gets the location or locations supported by the provider.- Specified by:
getResourceTypesin interfaceIURNProvider- Returns:
- The supported locations: none, i.e. an empty list.
parse
public URN parse(String urnString, String nss, String req, String query, String fragment) throws URNException Parses the URN after the NID specification, i.e. after "urn:NID:".- Specified by:
parsein interfaceIURNProvider- 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 "?+"),nullfor none.query- The decoded query String (without "?="),nullfor none.fragment- The decoded fragment,nullfor none.- Returns:
- The URN instance.
- Throws:
URNException- For URN exceptions.