com.arsdigita.acs
Interface ExtensionHandler


public interface ExtensionHandler

Interface for a generic handler, to test incoming requests and screen them out or pass them through as appropriate.

Defines a single method, handle(HttpServletRequest, HttpServletResponse, ServletContext). Implementing classes will check parameters or cookies in the request and may either write to the response output stream directly, or pass the response object on to another request dispatcher.

See Also:
RequestProcessor

Field Summary
static java.lang.String cvsId
           
 
Method Summary
 boolean handle(java.lang.String fileToServe, boolean include, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, javax.servlet.ServletContext ctx)
          The request handler interface.
 

Field Detail

cvsId

public static final java.lang.String cvsId
Method Detail

handle

public boolean handle(java.lang.String fileToServe,
                      boolean include,
                      javax.servlet.http.HttpServletRequest req,
                      javax.servlet.http.HttpServletResponse resp,
                      javax.servlet.ServletContext ctx)
               throws javax.servlet.ServletException,
                      java.io.IOException
The request handler interface.
Parameters:
fileToServe - the URL of the file to serve
include - if true, this handler will call include() rather than forward()
req - The servlet request
resp - The servlet response
ctx - The servlet context
Returns:
true if the caller should not continue processing the request after the handler is called; false if the caller should continue procesing the request.