Package com.iizix.server.wsfile
Class ImageURNProvider
java.lang.Object
com.iizix.server.wsfile.ImageURNProvider
- All Implemented Interfaces:
- IFileURNProvider,- IImageURNProvider,- IURNProvider
The file URN provider.
- Author:
- Christopher Mindus
- Method SummaryModifier and TypeMethodDescription- getImageTarget- (URNResourceType type, String name) Gets the image target reference.- static ImageURNProviderGets the singleton instance of the Image URN provider.- getNID()Gets the Naming IDentifier of the provider.Gets the URN Resource Type supported by the provider.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 Details- getInstanceGets the singleton instance of the Image URN provider.- Returns:
- The provider.
 
- getNIDGets the Naming IDentifier of the provider.- Specified by:
- getNIDin interface- IURNProvider
- Returns:
- The NID.
 
- getResourceTypesGets the URN Resource Type supported by the provider.- Specified by:
- getResourceTypesin interface- IURNProvider
- Returns:
- The supported resource type, empty list when not resource based.
 
- parsepublic 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 interface- IURNProvider
- 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.
 
- getImageTargetGets the image target reference.- Specified by:
- getImageTargetin interface- IImageURNProvider
- Parameters:
- type- The type of URN request.
- name- The name of the image.
- Returns:
- The image target reference, of nullif not found.