de.root1.simon.codec.base
Class MsgPingDecoder

java.lang.Object
  extended by de.root1.simon.codec.base.AbstractMessageDecoder
      extended by de.root1.simon.codec.base.MsgPingDecoder
All Implemented Interfaces:
org.apache.mina.filter.codec.demux.MessageDecoder

public class MsgPingDecoder
extends AbstractMessageDecoder

A MessageDecoder that decodes MsgPing.

Author:
ACHR

Field Summary
 
Fields inherited from interface org.apache.mina.filter.codec.demux.MessageDecoder
NEED_DATA, NOT_OK, OK
 
Constructor Summary
MsgPingDecoder()
           
 
Method Summary
protected  AbstractMessage decodeBody(org.apache.mina.core.session.IoSession session, org.apache.mina.core.buffer.IoBuffer in)
           
 void finishDecode(org.apache.mina.core.session.IoSession session, org.apache.mina.filter.codec.ProtocolDecoderOutput out)
           
 
Methods inherited from class de.root1.simon.codec.base.AbstractMessageDecoder
decodable, decode, getBodySize, getCurrentSequence
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MsgPingDecoder

public MsgPingDecoder()
Method Detail

decodeBody

protected AbstractMessage decodeBody(org.apache.mina.core.session.IoSession session,
                                     org.apache.mina.core.buffer.IoBuffer in)
Specified by:
decodeBody in class AbstractMessageDecoder
Returns:
null if the whole body is not read yet

finishDecode

public void finishDecode(org.apache.mina.core.session.IoSession session,
                         org.apache.mina.filter.codec.ProtocolDecoderOutput out)
                  throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2011. All Rights Reserved.