com.atlassian.jira.lookandfeel.filter
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
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 |
ImageDownloader
public ImageDownloader()
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
Copyright © 2002-2013 Atlassian. All Rights Reserved.