com.atlassian.jira.lookandfeel.filter
Class ImageDownloader

java.lang.Object
  extended by 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
ImageDownloader()
           
 
Method Summary
 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 Detail

ImageDownloader

public ImageDownloader()
Method Detail

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


Copyright © 2002-2013 Atlassian. All Rights Reserved.