Class ImageDownloader

java.lang.Object
com.atlassian.jira.lookandfeel.filter.ImageDownloader

public class ImageDownloader extends Object
Streams image files to the ServletOutputStream - uses buffer size of 1kb
Since:
v4.4
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 request
      resp - The response
      context - The servletContext
      filename - The name of the image you want to download.
      shouldClose - Whether the output stream should be closed or not
      Throws:
      IOException