Class ImageDownloader
java.lang.Object
com.atlassian.jira.lookandfeel.filter.ImageDownloader
Streams image files to the ServletOutputStream - uses buffer size of 1kb
- Since:
- v4.4
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
doDownload
(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, javax.servlet.ServletContext context, String filename, boolean shouldClose) Sends an image to the ServletResponse output stream.
-
Constructor Details
-
ImageDownloader
public ImageDownloader()
-
-
Method Details
-
doDownload
public void doDownload(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, javax.servlet.ServletContext context, String filename, boolean shouldClose) throws IOException Sends an image to the ServletResponse output stream.- Parameters:
req
- The requestresp
- The responsecontext
- The servletContextfilename
- The name of the image you want to download.shouldClose
- Whether the output stream should be closed or not- Throws:
IOException
-