net.sourceforge.apphere.proxy.rabbit.handler
Class AppHereHandler

java.lang.Object
  extended byrabbit.handler.BaseHandler
      extended byrabbit.handler.FilterHandler
          extended bynet.sourceforge.apphere.proxy.rabbit.handler.AppHereHandler
All Implemented Interfaces:
Handler

public class AppHereHandler
extends FilterHandler

Author:
Dewi Roberts http://www.essex.ac.uk/chimera AppHereHandler.java Created 04-Apr-2003 net.sourceforge.apphere.proxy.rabbit.handler

Constructor Summary
AppHereHandler(Connection con, HTTPHeader request, HTTPHeader response, java.io.InputStream contentstream, MultiOutputStream clientstream, boolean maycache, boolean mayfilter, long size)
          Create a new AppHereHandler for the given request.
 
Method Summary
 void handle()
          Handle the request.
 
Methods inherited from class rabbit.handler.FilterHandler
send, setup
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppHereHandler

public AppHereHandler(Connection con,
                      HTTPHeader request,
                      HTTPHeader response,
                      java.io.InputStream contentstream,
                      MultiOutputStream clientstream,
                      boolean maycache,
                      boolean mayfilter,
                      long size)
Create a new AppHereHandler for the given request.

Parameters:
con - the Connection handling the request.
request - the actual request made.
response - the actual response.
contentstream - the stream to read data from.
clientstream - the stream to write data to.
maycache - May we cache this request?
mayfilter - May we filter this request?
size - the size of the data beeing handled.
Method Detail

handle

public void handle()
            throws java.io.IOException
Handle the request. A request is made in these steps: writeHeader (); addCacheStream (); prepareStream (); send (); finishStream (); finish ();

Specified by:
handle in interface Handler
Overrides:
handle in class FilterHandler
Throws:
java.io.IOException - if any of the underlying methods does.
See Also:
FilterHandler