|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrabbit.handler.BaseHandler
rabbit.handler.MultiPartHandler
public class MultiPartHandler
This class handles multipart responses, this handler does not filter the resource.
Field Summary |
---|
Fields inherited from class rabbit.handler.BaseHandler |
---|
cacheChannel, con, content, entry, mayCache, mayFilter, request, response, size, tlh, totalRead |
Constructor Summary | |
---|---|
MultiPartHandler()
Create a new MultiPartHandler factory. |
|
MultiPartHandler(Connection con,
TrafficLoggerHandler tlh,
HttpHeader request,
HttpHeader response,
ResourceSource content)
Create a new BaseHansler for the given request. |
Method Summary | |
---|---|
void |
bufferRead(BufferHandle bufHandle)
A buffer has been read, the buffer has been flip:ed before this call is made so position and remaining are valid. |
boolean |
changesContentSize()
We may remove trailers, so we may modify the content. |
Handler |
getNewInstance(Connection con,
TrafficLoggerHandler tlh,
HttpHeader header,
HttpHeader webHeader,
ResourceSource content,
boolean mayCache,
boolean mayFilter,
long size)
Get a new Handler for the given request made. |
protected void |
send()
|
Methods inherited from class rabbit.handler.BaseHandler |
---|
addCache, blockSent, deleteFile, failed, finish, finishData, finishedRead, getLogger, handle, httpHeaderSent, mayCacheFromSize, mayRestrictCacheSize, mayTransfer, prepare, removeCache, sendHeader, setPartialContent, setup, timeout, writeCache |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiPartHandler()
public MultiPartHandler(Connection con, TrafficLoggerHandler tlh, HttpHeader request, HttpHeader response, ResourceSource content)
con
- the Connection handling the request.tlh
- the TrafficLoggerHandler to update with traffic informationrequest
- the actual request made.response
- the actual response.content
- the resource.Method Detail |
---|
public Handler getNewInstance(Connection con, TrafficLoggerHandler tlh, HttpHeader header, HttpHeader webHeader, ResourceSource content, boolean mayCache, boolean mayFilter, long size)
HandlerFactory
getNewInstance
in interface HandlerFactory
getNewInstance
in class BaseHandler
con
- the Connection handling the request.tlh
- the Traffic logger handler.header
- the request.webHeader
- the response.content
- the resource.mayCache
- if the handler may cache the response.mayFilter
- if the handler may filter the response.size
- the Size of the data beeing handled (-1 = unknown length).
public boolean changesContentSize()
changesContentSize
in interface Handler
changesContentSize
in class BaseHandler
protected void send()
send
in class BaseHandler
public void bufferRead(BufferHandle bufHandle)
BlockListener
bufferRead
in interface BlockListener
bufferRead
in class BaseHandler
bufHandle
- the data that was read
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |