rabbit.handler
Class MultiPartHandler

java.lang.Object
  extended byrabbit.handler.BaseHandler
      extended byrabbit.handler.MultiPartHandler
All Implemented Interfaces:
Handler

public class MultiPartHandler
extends BaseHandler

This class handles multipart responses, this handler does not filter the resource.


Field Summary
 
Fields inherited from class rabbit.handler.BaseHandler
cacheStream, clientstream, con, contentstream, entry, maycache, mayfilter, request, response, size
 
Constructor Summary
MultiPartHandler(Connection con, HTTPHeader request, HTTPHeader response, java.io.InputStream contentstream, MultiOutputStream clientstream, boolean maycache, boolean mayfilter, long size)
          Create a new BaseHansler for the given request.
 
Method Summary
protected  void send()
          Send the actual data.
 
Methods inherited from class rabbit.handler.BaseHandler
addCacheStream, finish, finishStream, handle, prepareStream, removeCache, setPartialContent, writeHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiPartHandler

public MultiPartHandler(Connection con,
                        HTTPHeader request,
                        HTTPHeader response,
                        java.io.InputStream contentstream,
                        MultiOutputStream clientstream,
                        boolean maycache,
                        boolean mayfilter,
                        long size)
Create a new BaseHansler 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

send

protected void send()
             throws java.io.IOException
Description copied from class: BaseHandler
Send the actual data.

Overrides:
send in class BaseHandler
Throws:
java.io.IOException - if reading or writing of the data fails.