public class

ViewThumbnailServlet

extends ViewAttachmentServlet
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

Summary

Public Constructors
ViewThumbnailServlet()
Protected Methods
void getInputStream(String attachmentPath, InputStreamConsumer<Unit> consumer)
Gets the attachment file (not the file name) that corresponds to the requested attachment.
void setResponseHeaders(HttpServletRequest request, HttpServletResponse response)
Sets the content type, content length and "Content-Disposition" header of the response based on the values of the attachement found.
[Expand]
Inherited Methods
From class com.atlassian.jira.web.servlet.ViewAttachmentServlet
From class com.atlassian.jira.web.servlet.AbstractViewFileServlet
From class javax.servlet.http.HttpServlet
From class javax.servlet.GenericServlet
From class java.lang.Object
From interface javax.servlet.Servlet
From interface javax.servlet.ServletConfig

Public Constructors

public ViewThumbnailServlet ()

Protected Methods

protected void getInputStream (String attachmentPath, InputStreamConsumer<Unit> consumer)

Gets the attachment file (not the file name) that corresponds to the requested attachment.

Parameters
attachmentPath the attachment path
consumer a procedure that consumes the stream with the attachment data.

protected void setResponseHeaders (HttpServletRequest request, HttpServletResponse response)

Sets the content type, content length and "Content-Disposition" header of the response based on the values of the attachement found.

Parameters
request HTTP request
response HTTP response