juju.reattore.server.intercept.impl
Class FallbackErrorInterceptor

java.lang.Object
  |
  +--juju.reattore.server.intercept.impl.FallbackErrorInterceptor
All Implemented Interfaces:
Interceptor

public class FallbackErrorInterceptor
extends java.lang.Object
implements Interceptor

Last chance error handler that returns a simple HTML page.


Constructor Summary
FallbackErrorInterceptor()
          Use the default message.
 
Method Summary
 boolean process(HttpRequest req, HttpResponse resp)
          Process an incoming HTTP request if possible, filling in the given response as it goes.
 void setMessage(java.lang.String msg)
          Set the message to return.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FallbackErrorInterceptor

public FallbackErrorInterceptor()
Use the default message.

See Also:
FallbackErrorInterceptor()
Method Detail

setMessage

public void setMessage(java.lang.String msg)
Set the message to return. Create a new fallback handler with the given message/message format. The parameters are:

Parameters:
msg - The new message.

process

public boolean process(HttpRequest req,
                       HttpResponse resp)
Description copied from interface: 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 Interceptor
Parameters:
req - HTTP request to process
resp - Response to fill in
Returns:
true if the request was recognised and processed.
See Also:
Interceptor


Copyright © 2002-2003 Michael Hope. All Rights Reserved.