com.atlassian.jira.web.servlet
Class ViewThumbnailServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.atlassian.jira.web.servlet.AbstractViewFileServlet
com.atlassian.jira.web.servlet.ViewAttachmentServlet
com.atlassian.jira.web.servlet.ViewThumbnailServlet
- All Implemented Interfaces:
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class ViewThumbnailServlet
- extends ViewAttachmentServlet
- See Also:
- Serialized Form
Method Summary |
protected File |
getFileName(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Returns the file of the attachment. |
protected void |
setResponseHeaders(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Sets the content type, content length and "Content-Disposition" header
of the response based on the values of the attachement found. |
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, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ViewThumbnailServlet
public ViewThumbnailServlet()
getFileName
protected File getFileName(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws DataAccessException,
PermissionException
- Description copied from class:
ViewAttachmentServlet
- Returns the file of the attachment.
- Overrides:
getFileName
in class ViewAttachmentServlet
- Parameters:
request
- HTTP requestresponse
- HTTP response
- Returns:
- attachment file
- Throws:
DataAccessException
- if attachment or user cannot be retrieved due to some kind of db access problem.
PermissionException
- if user is denied permission to see the attachment
setResponseHeaders
protected void setResponseHeaders(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
- Description copied from class:
ViewAttachmentServlet
- Sets the content type, content length and "Content-Disposition" header
of the response based on the values of the attachement found.
- Overrides:
setResponseHeaders
in class ViewAttachmentServlet
- Parameters:
request
- HTTP requestresponse
- HTTP response
Copyright © 2002-2009 Atlassian. All Rights Reserved.