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, handleOutputStreamingExceptiondoDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, serviceprotected void defaultDoGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String ownerId,
Long avatarId,
Avatar.Size size)
throws IOException,
javax.servlet.ServletException
AbstractAvatarServletdefaultDoGet in class AbstractAvatarServletIOExceptionjavax.servlet.ServletExceptionprotected Long validateInput(String ownerId, Long avatarId, javax.servlet.http.HttpServletResponse response) throws IOException
AbstractAvatarServletvalidateInput in class AbstractAvatarServletownerId - 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 AbstractAvatarServletprotected String getOwnerIdParamName()
AbstractAvatarServletgetOwnerIdParamName in class AbstractAvatarServletCopyright © 2002-2018 Atlassian. All Rights Reserved.