org.littleshoot.util.mina
Class DemuxingStateMachineProtocolDecoder
java.lang.Object
org.littleshoot.util.mina.DemuxingStateMachineProtocolDecoder
- All Implemented Interfaces:
- org.littleshoot.mina.filter.codec.ProtocolDecoder, DemuxableProtocolDecoder
public class DemuxingStateMachineProtocolDecoder
- extends Object
- implements DemuxableProtocolDecoder
A StateMachineProtocolDecoder that can be used with a protocol
that should be dumultiplexed with other protocols.
|
Method Summary |
boolean |
atMessageBoundary()
|
void |
decode(org.littleshoot.mina.common.IoSession session,
org.littleshoot.mina.common.ByteBuffer in,
org.littleshoot.mina.filter.codec.ProtocolDecoderOutput out)
|
void |
dispose(org.littleshoot.mina.common.IoSession session)
|
void |
finishDecode(org.littleshoot.mina.common.IoSession session,
org.littleshoot.mina.filter.codec.ProtocolDecoderOutput out)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DemuxingStateMachineProtocolDecoder
public DemuxingStateMachineProtocolDecoder(DecodingStateMachine stateMachine)
- Creates a new
DemuxingStateMachineProtocolDecoder.
- Parameters:
stateMachine - The state machine that will transition between
states.
decode
public void decode(org.littleshoot.mina.common.IoSession session,
org.littleshoot.mina.common.ByteBuffer in,
org.littleshoot.mina.filter.codec.ProtocolDecoderOutput out)
throws Exception
- Specified by:
decode in interface org.littleshoot.mina.filter.codec.ProtocolDecoder
- Throws:
Exception
dispose
public void dispose(org.littleshoot.mina.common.IoSession session)
throws Exception
- Specified by:
dispose in interface org.littleshoot.mina.filter.codec.ProtocolDecoder
- Throws:
Exception
finishDecode
public void finishDecode(org.littleshoot.mina.common.IoSession session,
org.littleshoot.mina.filter.codec.ProtocolDecoderOutput out)
throws Exception
- Specified by:
finishDecode in interface org.littleshoot.mina.filter.codec.ProtocolDecoder
- Throws:
Exception
atMessageBoundary
public boolean atMessageBoundary()
- Specified by:
atMessageBoundary in interface DemuxableProtocolDecoder
Copyright © 2013 LittleShoot. All Rights Reserved.