Package com.iizix.server.wsfile
Class FileURNProvider
- java.lang.Object
- com.iizix.server.wsfile.FileURNProvider
- All Implemented Interfaces:
IFileURNProvider
,IURNProvider
public class FileURNProvider extends java.lang.Object implements IFileURNProvider
The file URN provider.- Author:
- Christopher Mindus
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FileURNProvider
getInstance()
Gets the singleton instance of the File URN provider.NID
getNID()
Gets the Naming IDentifier of the provider.java.util.List<URNResourceType>
getResourceTypes()
Gets the URN Resource Type supported by the provider.URN
parse(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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.iizix.urn.IURNProvider
paramString0
Method Detail
getInstance
public static FileURNProvider getInstance()
Gets the singleton instance of the File URN provider.- Returns:
- The provider.
getNID
public NID getNID()
Gets the Naming IDentifier of the provider.- Specified by:
getNID
in interfaceIURNProvider
- Returns:
- The NID.
getResourceTypes
public java.util.List<URNResourceType> getResourceTypes()
Gets the URN Resource Type supported by the provider.- Specified by:
getResourceTypes
in interfaceIURNProvider
- Returns:
- 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 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 "?+"),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.