|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
public class ViewThumbnailServlet
Constructor Summary | |
---|---|
ViewThumbnailServlet()
|
Method Summary | |
---|---|
protected void |
getInputStream(String attachmentPath,
InputStreamConsumer<Void> consumer)
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 com.atlassian.jira.web.servlet.ViewAttachmentServlet |
---|
getAttachment, hasPermissionToViewAttachment |
Methods inherited from class com.atlassian.jira.web.servlet.AbstractViewFileServlet |
---|
attachmentQuery, doGet, getJiraAuthenticationContext, getUserName |
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 |
---|
public ViewThumbnailServlet()
Method Detail |
---|
protected void getInputStream(String attachmentPath, InputStreamConsumer<Void> consumer) throws InvalidAttachmentPathException, DataAccessException, IOException, PermissionException
ViewAttachmentServlet
getInputStream
in class ViewAttachmentServlet
attachmentPath
- the query describing which attachment to get
InvalidAttachmentPathException
- if the path to the attachment was invalid in some way.
DataAccessException
- if attachment or user cannot be retrieved due to some kind of db access problem.
IOException
- if there is a problem getting the File.
PermissionException
- if user is denied permission to see the attachmentprotected void setResponseHeaders(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
ViewAttachmentServlet
setResponseHeaders
in class ViewAttachmentServlet
request
- HTTP requestresponse
- HTTP response
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |