public class ImageDownloader extends Object
Constructor and Description |
---|
ImageDownloader() |
Modifier and Type | Method and 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.
|
public void doDownload(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, javax.servlet.ServletContext context, String filename, boolean shouldClose) throws IOException
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 notIOException
Copyright © 2002-2022 Atlassian. All Rights Reserved.