public class ViewProjectAvatarServlet extends AbstractAvatarServlet
Constructor and Description |
---|
ViewProjectAvatarServlet() |
Modifier and Type | Method and Description |
---|---|
protected String |
getOwnerIdParamName()
Slight hack to stay backwards compatible for project avatars via the 'pid' param.
|
protected Long |
validateInput(String projectId,
Long avatarId,
javax.servlet.http.HttpServletResponse response)
Ensures the input is valid and if validation passes returns a valid avatarId
to serve.
|
avatarOkForOwner, defaultDoGet, doGet, getAvatarManager, getAvatarToStream, getOwnerId, handleOutputStreamingException
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
protected Long validateInput(String projectId, Long avatarId, javax.servlet.http.HttpServletResponse response) throws IOException
AbstractAvatarServlet
validateInput
in class AbstractAvatarServlet
projectId
- The owner of the avataravatarId
- The avatarId requestedresponse
- The response to sendIOException
- If there's an error updating the response objectprotected String getOwnerIdParamName()
AbstractAvatarServlet
getOwnerIdParamName
in class AbstractAvatarServlet
Copyright © 2002-2017 Atlassian. All Rights Reserved.