java.lang.Object
juju.reattore.server.intercept.impl.ErrorInterceptor
- All Implemented Interfaces:
- juju.reattore.server.intercept.Interceptor
- public class ErrorInterceptor
- extends java.lang.Object
- implements juju.reattore.server.intercept.Interceptor
Interceptor that serves an error document if the main path can't
find anything.
The main path will be given the first chance to handle the
request. If the main path cannot then the error path is given a
chance.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static org.apache.commons.logging.Log log
main
private juju.reattore.server.intercept.Interceptor main
error
private juju.reattore.server.intercept.Interceptor error
ErrorInterceptor
public ErrorInterceptor()
addChild
public void addChild(juju.reattore.server.intercept.Interceptor child)
- Accessor to help Digester configuration. First sets the main
path, then the error path.
setMainPath
public void setMainPath(juju.reattore.server.intercept.Interceptor path)
- Sets the root of the main path to go through.
setErrorPath
public void setErrorPath(juju.reattore.server.intercept.Interceptor path)
- Sets the root of the error path to go through.
process
public boolean process(juju.reattore.protocol.http.HttpRequest req,
juju.reattore.protocol.http.HttpResponse resp)
- Description copied from interface:
juju.reattore.server.intercept.Interceptor
- Process an incoming HTTP request if possible, filling in the
given response as it goes. An interceptor may have side
effects without actually performing the main processing and
may pass it on to another interceptor. A authentication
interceptor is a good example.
- Specified by:
process in interface juju.reattore.server.intercept.Interceptor