| java.lang.Object sunlabs.brazil.tcl.TclFilter
TclFilter | public class TclFilter implements Filter(Code) | | Filter for writing Filters in tcl
Run a tcl startup script when the handler is initialized.
anytime a request is made, call the respond callback
in the tcl code, which is provided with the
sunlabs.brazil.server.Request object as an argument.
This provides a bare-bones tcl interface. The startup script
should provide a friendlier interface.
This handler requires that tcljava.jar and jacl.jar
jar files (both available
)here.
If you need Tcl's regular expressions, you will also need
oro.jar , available at the location above.
The following server properties are used:
- script
- The name of the TCL file sourced on startup.
The
TclFilter.init parameters are made available as the global
variables
prefix and server .
author: Stephen Uhler version: %V% TclHandler.java |
init | public boolean init(Server server, String prefix)(Code) | | extract the filter properties.
|
respond | public boolean respond(Request request)(Code) | | We don't need to look at the request.
|
shouldFilter | public boolean shouldFilter(Request request, MimeHeaders headers)(Code) | | For now, only filter text/html. This restriction will be
lifted once I figure out how
|
|
|