Package com.atlassian.jira.web.servlet
Class AvatarToStream
java.lang.Object
com.atlassian.jira.web.servlet.AvatarToStream
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumstatic interface -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsendAvatar(AvatarToStream.AvatarData avatarData, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) static AvatarFormatPolicytoAvatarRequestedFormat(Optional<String> imageFormat) Parses the upper cased string parameter and returns aAvatarFormatPolicy.
-
Constructor Details
-
AvatarToStream
-
-
Method Details
-
sendAvatar
public void sendAvatar(AvatarToStream.AvatarData avatarData, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException - Throws:
IOException
-
toAvatarRequestedFormat
Parses the upper cased string parameter and returns aAvatarFormatPolicy.If the parameter is not valid, and fails to be parsed, then
AvatarFormatPolicy.createOriginalDataPolicy()will be returned- Parameters:
imageFormat- format value as Optional String- Returns:
AvatarFormatPolicyaccording to the value orAvatarFormatPolicy.createOriginalDataPolicy()if null or invalid
-