com.atlassian.jira.web.servlet
Class ViewAttachmentServlet

java.lang.Object
  extended byHttpServlet
      extended bycom.atlassian.jira.web.servlet.ViewAttachmentServlet

public class ViewAttachmentServlet
extends HttpServlet

See Also:
Serialized Form

Constructor Summary
ViewAttachmentServlet()
           
 
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
 

Constructor Detail

ViewAttachmentServlet

public ViewAttachmentServlet()
Method Detail

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