public class

ImageDownloader

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

Class Overview

Streams image files to the ServletOutputStream - uses buffer size of 1kb

Summary

Public Constructors
ImageDownloader()
Public Methods
void doDownload(HttpServletRequest req, HttpServletResponse resp, ServletContext context, String filename, boolean shouldClose)
Sends an image to the ServletResponse output stream.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ImageDownloader ()

Public Methods

public void doDownload (HttpServletRequest req, HttpServletResponse resp, ServletContext context, String filename, boolean shouldClose)

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