Package com.iizix.urn.user
Class UserProfileImageURNFactory
java.lang.Object
com.iizix.urn.user.UserProfileImageURNFactory
- All Implemented Interfaces:
- IURNProvider
User Profile Image provider for IIZI URN's.
User Profile Image URN's are encoded in IIZI as:
    urn:iz-pimg:type:id=userID or
    urn:iz-pimg:type:name=userName
The type is the image type are the {@link UserProfileImageURNType#name()}, i.e. one of the Strings
- Uploaded
- CroppedUploaded
- Large
- Thumbnail
The userID is a {code long} value unique to the user ID in question, the userName is a UTF-8 encoded string.
- Author:
- Christopher Mindus
- See Also:
- Field SummaryFields
- Method SummaryModifier and TypeMethodDescription- static UserProfileImageURNFactoryGets 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 void- initialize- (URNFactory factory, IUserProfileImageURNProvider provider) Initializes the User Profile string 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, wait- Methods inherited from interface com.iizix.urn.IURNProvider- paramString0
- Field Details- nidThe- NID.PROFILE_IMAGE.
 
- Method Details- initializeInitializes the User Profile string URN factory.- This method is not intended to be called by user code, the system will handle it. - Parameters:
- factory- The URN factory instance.
- provider- The User Profile Image URN provider.
- Throws:
- RuntimeException- If this method is called twice for the same URN provider.
 
- getInstanceGets the singleton instance of the URL URN factory.- Returns:
- The URL URN factory instance.
 
- getNIDGets the Naming IDentifier of the provider.- Specified by:
- getNIDin interface- IURNProvider
- Returns:
- The NID.PROFILE_IMAGE.
 
- getResourceTypesGets the location or locations supported by the provider.- Specified by:
- getResourceTypesin interface- IURNProvider
- Returns:
- The supported locations: none, i.e. an empty list.
 
- 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.