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

java.lang.Object
  extended by ch.mimo.netty.handler.codec.icap.State<ReadChunkSizeState.DecisionState>
      extended by ch.mimo.netty.handler.codec.icap.ReadChunkSizeState

public class ReadChunkSizeState
extends State<ReadChunkSizeState.DecisionState>

Decoder State that reads chunk size

Author:
Michael Mimo Moratti (mimo@mimo.ch)
See Also:
IcapMessageDecoder, StateEnum

Nested Class Summary
static class ReadChunkSizeState.DecisionState
          Used to decide what state has to be processed next.
 
Constructor Summary
ReadChunkSizeState(String name)
           
 
Method Summary
 StateReturnValue execute(org.jboss.netty.buffer.ChannelBuffer buffer, IcapMessageDecoder icapMessageDecoder)
          execution method
 void onEntry(org.jboss.netty.buffer.ChannelBuffer buffer, IcapMessageDecoder icapMessageDecoder)
          Preparation method
 StateEnum onExit(org.jboss.netty.buffer.ChannelBuffer buffer, IcapMessageDecoder icapMessageDecoder, ReadChunkSizeState.DecisionState decisionInformation)
          Flow decision method
 
Methods inherited from class ch.mimo.netty.handler.codec.icap.State
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReadChunkSizeState

public ReadChunkSizeState(String name)
Method Detail

onEntry

public void onEntry(org.jboss.netty.buffer.ChannelBuffer buffer,
                    IcapMessageDecoder icapMessageDecoder)
             throws DecodingException
Description copied from class: State
Preparation method

Specified by:
onEntry in class State<ReadChunkSizeState.DecisionState>
Throws:
DecodingException

execute

public StateReturnValue execute(org.jboss.netty.buffer.ChannelBuffer buffer,
                                IcapMessageDecoder icapMessageDecoder)
                         throws DecodingException
Description copied from class: State
execution method

Specified by:
execute in class State<ReadChunkSizeState.DecisionState>
Returns:
@see StateReturnValue that contains, dependent on the relevance a return value.
Throws:
DecodingException

onExit

public StateEnum onExit(org.jboss.netty.buffer.ChannelBuffer buffer,
                        IcapMessageDecoder icapMessageDecoder,
                        ReadChunkSizeState.DecisionState decisionInformation)
                 throws DecodingException
Description copied from class: State
Flow decision method

Specified by:
onExit in class State<ReadChunkSizeState.DecisionState>
Returns:
has to return a valid next state. Can be itself.
Throws:
DecodingException


Copyright © 2011. All Rights Reserved.