org.directwebremoting.servlet
Class DownloadHandler
java.lang.Object
org.directwebremoting.servlet.DownloadHandler
- All Implemented Interfaces:
- Handler
public class DownloadHandler
- extends java.lang.Object
- implements Handler
A DownloadHandler is basically a FileServingServlet that integrates with
a DownloadManager to purge files from the system that have been downloaded.
- Author:
- Joe Walker [joe at getahead dot ltd dot uk]
|
Method Summary |
void |
handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handle a URL request that has been mapped to this Handler |
void |
setDownloadHandlerUrl(java.lang.String downloadHandlerUrl)
The URL part which we attach to the downloads. |
void |
setDownloadManager(DownloadManager downloadManager)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DownloadHandler
public DownloadHandler()
handle
public void handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
- Description copied from interface:
Handler
- Handle a URL request that has been mapped to this Handler
- Specified by:
handle in interface Handler
- Parameters:
request - The HTTP request dataresponse - Where we write the HTTP response data
- Throws:
java.io.IOException - If the write process fails
setDownloadManager
public void setDownloadManager(DownloadManager downloadManager)
- Parameters:
downloadManager - The new DownloadManager
setDownloadHandlerUrl
public void setDownloadHandlerUrl(java.lang.String downloadHandlerUrl)
- The URL part which we attach to the downloads.
- Parameters:
downloadHandlerUrl - The URL for this Handler.