public class ViewUserAvatarServlet extends AbstractAvatarServlet
AbstractAvatarServlet.PreprocessedInput
Constructor and Description |
---|
ViewUserAvatarServlet() |
Modifier and Type | Method and Description |
---|---|
protected void |
defaultDoGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String ownerId,
Long avatarId,
Avatar.Size size)
Template method that processes the GET request.
|
protected String |
getOwnerId(javax.servlet.http.HttpServletRequest request) |
protected String |
getOwnerIdParamName()
Slight hack to stay backwards compatible for project avatars via the 'pid' param.
|
protected AbstractAvatarServlet.PreprocessedInput |
preprocessInput(String ownerId,
Long avatarId,
Avatar.Size size,
javax.servlet.http.HttpServletResponse response)
Ensures the input is valid and if validation passes returns a valid avatarId
to serve.
|
avatarOkForOwner, doGet, getAvatarManager, getAvatarToStream, getFeatureManager, handleOutputStreamingException, isFeatureEnabled
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
protected void defaultDoGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String ownerId, Long avatarId, Avatar.Size size) throws IOException, javax.servlet.ServletException
AbstractAvatarServlet
defaultDoGet
in class AbstractAvatarServlet
IOException
javax.servlet.ServletException
protected AbstractAvatarServlet.PreprocessedInput preprocessInput(String ownerId, Long avatarId, Avatar.Size size, javax.servlet.http.HttpServletResponse response) throws IOException
AbstractAvatarServlet
preprocessInput
in class AbstractAvatarServlet
ownerId
- The owner of the avataravatarId
- The avatarId requestedsize
- The size of requested avatarresponse
- The response to sendIOException
- If there's an error updating the response objectprotected String getOwnerId(javax.servlet.http.HttpServletRequest request)
getOwnerId
in class AbstractAvatarServlet
protected String getOwnerIdParamName()
AbstractAvatarServlet
getOwnerIdParamName
in class AbstractAvatarServlet
Copyright © 2002-2021 Atlassian. All Rights Reserved.