|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.netty.channel.SimpleChannelUpstreamHandler
ch.mimo.netty.handler.codec.icap.IcapChunkAggregator
public class IcapChunkAggregator
This ICAP chunk aggregator will combine an received ICAP message with all body chunks. the body is the to be found attached to the correct HTTP request or response instance within the ICAP message.
IcapChunkSeparator
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler |
---|
org.jboss.netty.channel.ChannelHandler.Sharable |
Constructor Summary | |
---|---|
IcapChunkAggregator(long maxContentLength)
|
Method Summary | |
---|---|
static org.jboss.netty.buffer.ChannelBuffer |
extractHttpBodyContentFromIcapMessage(IcapMessage message)
Convenience method to retrieve a HTTP request,response or an ICAP options response body from an aggregated IcapMessage. |
void |
messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e)
|
Methods inherited from class org.jboss.netty.channel.SimpleChannelUpstreamHandler |
---|
channelBound, channelClosed, channelConnected, channelDisconnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, exceptionCaught, handleUpstream, writeComplete |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IcapChunkAggregator(long maxContentLength)
maxContentLength
- defines the maximum length of the body content that is allowed.
If the length is exceeded an exception is thrown.Method Detail |
---|
public static org.jboss.netty.buffer.ChannelBuffer extractHttpBodyContentFromIcapMessage(IcapMessage message)
message
-
ChannelBuffer
if a body exists.public void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.MessageEvent e) throws Exception
messageReceived
in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |