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

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

public class ReadIcapInitialState
extends State<Object>

Decoder State that reads icap initial.

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

Constructor Summary
ReadIcapInitialState(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, Object 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

ReadIcapInitialState

public ReadIcapInitialState(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<Object>
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<Object>
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,
                        Object decisionInformation)
                 throws DecodingException
Description copied from class: State
Flow decision method

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


Copyright © 2011. All Rights Reserved.