com.atlassian.jira.web.servlet
Class ViewAttachmentServlet

java.lang.Object
  extended byHttpServlet
      extended bycom.atlassian.jira.web.servlet.AbstractViewFileServlet
          extended bycom.atlassian.jira.web.servlet.ViewAttachmentServlet
Direct Known Subclasses:
ViewThumbnailServlet

public class ViewAttachmentServlet
extends AbstractViewFileServlet

See Also:
Serialized Form

Constructor Summary
ViewAttachmentServlet()
           
 
Method Summary
protected  GenericValue getAttachment(java.lang.String query)
           
protected  java.io.File getFileName(HttpServletRequest request, HttpServletResponse response)
           
protected  boolean hasPermissionToViewAttachment(java.lang.String userString, GenericValue attachment)
           
protected  void setResponseHeaders(HttpServletRequest request, HttpServletResponse response)
           
 
Methods inherited from class com.atlassian.jira.web.servlet.AbstractViewFileServlet
doGet
 
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

getFileName

protected java.io.File getFileName(HttpServletRequest request,
                                   HttpServletResponse response)
                            throws GenericEntityException,
                                   EntityNotFoundException,
                                   java.io.IOException,
                                   PermissionException
Specified by:
getFileName in class AbstractViewFileServlet
Throws:
GenericEntityException
EntityNotFoundException
java.io.IOException
PermissionException

getAttachment

protected GenericValue getAttachment(java.lang.String query)
                              throws GenericEntityException
Throws:
GenericEntityException

setResponseHeaders

protected void setResponseHeaders(HttpServletRequest request,
                                  HttpServletResponse response)
                           throws GenericEntityException
Specified by:
setResponseHeaders in class AbstractViewFileServlet
Throws:
GenericEntityException

hasPermissionToViewAttachment

protected boolean hasPermissionToViewAttachment(java.lang.String userString,
                                                GenericValue attachment)
                                         throws EntityNotFoundException,
                                                GenericEntityException
Throws:
EntityNotFoundException
GenericEntityException