ch.mimo.netty.handler.codec.icap
Class IcapResponseDecoder

java.lang.Object
  extended by org.jboss.netty.channel.SimpleChannelUpstreamHandler
      extended by org.jboss.netty.handler.codec.replay.ReplayingDecoder<StateEnum>
          extended by ch.mimo.netty.handler.codec.icap.IcapMessageDecoder
              extended by ch.mimo.netty.handler.codec.icap.IcapResponseDecoder
All Implemented Interfaces:
org.jboss.netty.channel.ChannelHandler, org.jboss.netty.channel.ChannelUpstreamHandler

public class IcapResponseDecoder
extends IcapMessageDecoder

ICAP Response decoder which creates an @see IcapResponse instance.

Author:
Michael Mimo Moratti (mimo@mimo.ch)

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler
org.jboss.netty.channel.ChannelHandler.Sharable
 
Field Summary
 
Fields inherited from class ch.mimo.netty.handler.codec.icap.IcapMessageDecoder
currentChunkSize, maxChunkSize, maxHttpHeaderSize, maxIcapHeaderSize, maxInitialLineLength, message
 
Constructor Summary
IcapResponseDecoder()
           
IcapResponseDecoder(int maxInitialLineLength, int maxIcapHeaderSize, int maxHttpHeaderSize, int maxChunkSize)
           
 
Method Summary
protected  IcapMessage createMessage(String[] initialLine)
           
 boolean isDecodingResponse()
           
 
Methods inherited from class ch.mimo.netty.handler.codec.icap.IcapMessageDecoder
decode
 
Methods inherited from class org.jboss.netty.handler.codec.replay.ReplayingDecoder
actualReadableBytes, channelClosed, channelDisconnected, checkpoint, checkpoint, decodeLast, exceptionCaught, getState, internalBuffer, messageReceived, setState
 
Methods inherited from class org.jboss.netty.channel.SimpleChannelUpstreamHandler
channelBound, channelConnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, handleUpstream, writeComplete
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IcapResponseDecoder

public IcapResponseDecoder()

IcapResponseDecoder

public IcapResponseDecoder(int maxInitialLineLength,
                           int maxIcapHeaderSize,
                           int maxHttpHeaderSize,
                           int maxChunkSize)
Parameters:
maxInitialLineLength -
maxIcapHeaderSize -
maxHttpHeaderSize -
maxChunkSize -
See Also:
IcapMessageDecoder constructor for more details.
Method Detail

createMessage

protected IcapMessage createMessage(String[] initialLine)
Specified by:
createMessage in class IcapMessageDecoder

isDecodingResponse

public boolean isDecodingResponse()
Specified by:
isDecodingResponse in class IcapMessageDecoder


Copyright © 2011. All Rights Reserved.