org.directwebremoting.servlet
Class DownloadHandler

java.lang.Object
  extended by 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]

Constructor Summary
DownloadHandler()
           
 
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
 

Constructor Detail

DownloadHandler

public DownloadHandler()
Method Detail

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 data
response - 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.

Copyright 2008