com.atlassian.jira.web.servlet
Class ViewAttachmentServlet
java.lang.Object
HttpServlet
com.atlassian.jira.web.servlet.ViewAttachmentServlet
- public class ViewAttachmentServlet
- extends HttpServlet
- See Also:
- Serialized Form
Method Summary |
protected void |
doGet(HttpServletRequest request,
HttpServletResponse response)
|
protected GenericValue |
getAttachment(java.lang.String query)
|
protected boolean |
hasPermissionToViewAttachment(java.lang.String userString,
GenericValue attachment)
|
protected void |
setResponseHeaders(HttpServletResponse response,
GenericValue attachment)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ViewAttachmentServlet
public ViewAttachmentServlet()
doGet
protected void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
java.io.IOException
- Throws:
ServletException
java.io.IOException
getAttachment
protected GenericValue getAttachment(java.lang.String query)
throws GenericEntityException
- Throws:
GenericEntityException
setResponseHeaders
protected void setResponseHeaders(HttpServletResponse response,
GenericValue attachment)
hasPermissionToViewAttachment
protected boolean hasPermissionToViewAttachment(java.lang.String userString,
GenericValue attachment)
throws EntityNotFoundException,
GenericEntityException
- Throws:
EntityNotFoundException
GenericEntityException