public class ViewUserAvatarServlet extends AbstractAvatarServlet
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 Long |
validateInput(String ownerId,
Long avatarId,
javax.servlet.http.HttpServletResponse response)
Ensures the input is valid and if validation passes returns a valid avatarId
to serve.
|
avatarOkForOwner, doGet, getAvatarManager, getAvatarToStream, handleOutputStreamingException
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 Long validateInput(String ownerId, Long avatarId, javax.servlet.http.HttpServletResponse response) throws IOException
AbstractAvatarServlet
validateInput
in class AbstractAvatarServlet
ownerId
- The owner of the avataravatarId
- The avatarId requestedresponse
- 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-2017 Atlassian. All Rights Reserved.