juju.reattore.server.intercept.impl
Class DelegatingInterceptor

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

public class DelegatingInterceptor
extends java.lang.Object
implements Interceptor

Interceptor that delegates to child interceptors in the order that they were added.


Constructor Summary
DelegatingInterceptor()
           
 
Method Summary
 void addChild(Interceptor child)
          Adds a new child to delegate to.
 boolean process(HttpRequest req, HttpResponse resp)
          Process an incoming HTTP request if possible, filling in the given response as it goes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatingInterceptor

public DelegatingInterceptor()
Method Detail

addChild

public void addChild(Interceptor child)
Adds a new child to delegate to.

Parameters:
child - The interceptor to add.

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.