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
Method Summary
Modifier and TypeMethodDescriptionCreates an uninitialized profile image request.static UserProfileImageURNProvider
Gets 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:
createRequest
in 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:
getProfileImage
in interfaceIUserProfileImageURNProvider
- Parameters:
request
- The request.- Returns:
- The image definition, or
null
if 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.