Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

juju.reattore.server.intercept
Interface Interceptor  view Interceptor download Interceptor.java

All Known Subinterfaces:
CachableInterceptor

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(juju.reattore.protocol.http.HttpRequest req, juju.reattore.protocol.http.HttpResponse resp)
          Process an incoming HTTP request if possible, filling in the given response as it goes.
 

Method Detail

process

public boolean process(juju.reattore.protocol.http.HttpRequest req,
                       juju.reattore.protocol.http.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.