public class AvatarToStream extends Object
Constructor and Description |
---|
AvatarToStream(AvatarManager avatarManager) |
Modifier and Type | Method and Description |
---|---|
void |
sendAvatar(Avatar avatar,
Avatar.Size size,
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(Avatar avatar, Avatar.Size size, 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-2017 Atlassian. All Rights Reserved.