public class AvatarToStream extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AvatarToStream.AvatarData |
static class |
AvatarToStream.CachePolicies |
static interface |
AvatarToStream.CachePolicy |
Constructor and Description |
---|
AvatarToStream(AvatarManager avatarManager) |
Modifier and Type | Method and Description |
---|---|
void |
sendAvatar(AvatarToStream.AvatarData avatarData,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
static AvatarFormatPolicy |
toAvatarRequestedFormat(Optional<String> imageFormat)
Parses the upper cased string parameter and returns a
AvatarFormatPolicy . |
public AvatarToStream(AvatarManager avatarManager)
public void sendAvatar(AvatarToStream.AvatarData avatarData, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
IOException
public static AvatarFormatPolicy toAvatarRequestedFormat(Optional<String> imageFormat)
AvatarFormatPolicy
.
If the parameter is not valid, and fails to be parsed, then AvatarFormatPolicy.createOriginalDataPolicy()
will be returned
imageFormat
- format value as Optional StringAvatarFormatPolicy
according to the value or AvatarFormatPolicy.createOriginalDataPolicy()
if null or invalidCopyright © 2002-2021 Atlassian. All Rights Reserved.