Package com.iizix.server.user
Class UserProfileImageURNProvider
java.lang.Object
com.iizix.server.user.UserProfileImageURNProvider
- All Implemented Interfaces:
- IUserProfileImageURNProvider
The URN User Profile Image Provider singleton class.
- Author:
- Christopher Mindus
- Constructor SummaryConstructors
- Method SummaryModifier and TypeMethodDescriptionCreates an uninitialized profile image request.- static UserProfileImageURNProviderGets the singleton instance.- getProfileImage- (IUserProfileImageRequest request) Gets the profile image for the user for the specified request.
- Constructor Details- UserProfileImageURNProviderpublic UserProfileImageURNProvider()
 
- Method Details- getInstanceGets the singleton instance.- Returns:
- The IURNUserProfileProvider instance.
 
- createRequestCreates an uninitialized profile image request.- Specified by:
- createRequestin interface- IUserProfileImageURNProvider
- Returns:
- The uninitialized request.
 
- getProfileImageGets the profile image for the user for the specified request. The image is created and cached in the requested size if not available.- Specified by:
- getProfileImagein interface- IUserProfileImageURNProvider
- Parameters:
- request- The request.
- Returns:
- The image definition, or nullif a profile image is not available.
- Throws:
- IOException- For file I/O errors.
- IllegalStateException- If the request state is not valid, e.g. required settings are not specified.