com.arsdigita.acs.fs
Class Download

java.lang.Object
  |
  +--com.arsdigita.acs.FilterBase
        |
        +--com.arsdigita.acs.fs.Download
All Implemented Interfaces:
Filter

public class Download
extends FilterBase

Serves as a registered procedure for path /file-storage/download//pretty-name. This is useful because sometimes we can't count on the browser recognizing the Content-Disposition header for deciding what to do with a HTTP response.


Fields inherited from interface com.arsdigita.acs.Filter
FILTER_BREAK, FILTER_OK, FILTER_RETURN
 
Constructor Summary
Download()
           
 
Method Summary
(package private) static void ()
           
 int filter(HttpServletRequest req, HttpServletResponse resp, ServletContext ctx)
          The request filter interface.
 
Methods inherited from class com.arsdigita.acs.FilterBase
getPath, getPriority, setPath, setPriority
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Download

public Download()
Method Detail

static void ()

filter

public int filter(HttpServletRequest req,
                  HttpServletResponse resp,
                  ServletContext ctx)
           throws ACSException
Description copied from interface: Filter
The request filter interface.
Following copied from interface: com.arsdigita.acs.Filter
Parameters:
req - The servlet request
resp - The servlet response
ctx - The servlet context
Returns:
FILTER_RETURN if the caller should not continue processing the request after the filter is called; FILTER_OK if the caller should continue procesing the request; FILTER_BREAK if the caller should not process any more filters.