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 Summary
ConstructorsMethod Summary
Modifier 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
UserProfileImageURNProvider
public UserProfileImageURNProvider()
Method Details
getInstance
Gets the singleton instance.- Returns:
- The IURNUserProfileProvider instance.
createRequest
Creates an uninitialized profile image request.- Specified by:
createRequestin interfaceIUserProfileImageURNProvider- Returns:
- The uninitialized request.
getProfileImage
Gets 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 interfaceIUserProfileImageURNProvider- 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.