com.atlassian.jira.web.servlet
Class ViewAttachmentServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bycom.atlassian.jira.web.servlet.AbstractViewFileServlet
              extended bycom.atlassian.jira.web.servlet.ViewAttachmentServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
Direct Known Subclasses:
ViewThumbnailServlet

public class ViewAttachmentServlet
extends AbstractViewFileServlet

See Also:
Serialized Form

Constructor Summary
ViewAttachmentServlet()
           
 
Method Summary
protected  Attachment getAttachment(java.lang.String query)
           
protected  java.io.File getFileName(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  boolean hasPermissionToViewAttachment(java.lang.String userString, Attachment attachment)
           
protected  void setResponseHeaders(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Methods inherited from class com.atlassian.jira.web.servlet.AbstractViewFileServlet
doGet
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
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(javax.servlet.http.HttpServletRequest request,
                                   javax.servlet.http.HttpServletResponse response)
                            throws org.ofbiz.core.entity.GenericEntityException,
                                   com.opensymphony.user.EntityNotFoundException,
                                   java.io.IOException,
                                   PermissionException
Specified by:
getFileName in class AbstractViewFileServlet
Throws:
org.ofbiz.core.entity.GenericEntityException
com.opensymphony.user.EntityNotFoundException
java.io.IOException
PermissionException

getAttachment

protected Attachment getAttachment(java.lang.String query)
                            throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

setResponseHeaders

protected void setResponseHeaders(javax.servlet.http.HttpServletRequest request,
                                  javax.servlet.http.HttpServletResponse response)
                           throws org.ofbiz.core.entity.GenericEntityException
Specified by:
setResponseHeaders in class AbstractViewFileServlet
Throws:
org.ofbiz.core.entity.GenericEntityException

hasPermissionToViewAttachment

protected boolean hasPermissionToViewAttachment(java.lang.String userString,
                                                Attachment attachment)
                                         throws com.opensymphony.user.EntityNotFoundException,
                                                org.ofbiz.core.entity.GenericEntityException
Throws:
com.opensymphony.user.EntityNotFoundException
org.ofbiz.core.entity.GenericEntityException


Copyright © 2002-2005 Atlassian. All Rights Reserved.