juju.reattore.server.intercept
Interface Interceptor

All Known Subinterfaces:
CachableInterceptor
All Known Implementing Classes:
CachingInterceptor, DelegatingInterceptor, ErrorInterceptor, FallbackErrorInterceptor, FileInterceptor, PartitioningInterceptor, VelocityInterceptor

public interface Interceptor

An Interceptor is a module that is given a chance to process an incomming request and to respond to it. The Interceptor can do any combination of passing the request on, causing a side effect on the response such as adding a header, or supply the response body.


Method Summary
 boolean process(HttpRequest req, HttpResponse resp)
          Process an incoming HTTP request if possible, filling in the given response as it goes.
 

Method Detail

process

public boolean process(HttpRequest req,
                       HttpResponse resp)
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.

Parameters:
req - HTTP request to process
resp - Response to fill in
Returns:
true if the request was recognised and processed.


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