org.apache.mina.examples.sumup.codec
Class AbstractMessageDecoder
java.lang.Object
org.apache.mina.examples.sumup.codec.AbstractMessageDecoder
- Direct Known Subclasses:
- AddMessageDecoder, ResultMessageDecoder
public abstract class AbstractMessageDecoder
- extends java.lang.Object
A MessageDecoder
that decodes message header and forwards
the decoding of body to a subclass.
- Version:
- $Rev: 355016 $, $Date: 2005-12-08 16:00:30 +0900 (Thu, 08 Dec 2005) $
- Author:
- The Apache Directory Project
Method Summary |
MessageDecoderResult |
decodable(IoSession session,
ByteBuffer in)
|
MessageDecoderResult |
decode(IoSession session,
ByteBuffer in,
ProtocolDecoderOutput out)
|
protected abstract AbstractMessage |
decodeBody(IoSession session,
ByteBuffer in)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractMessageDecoder
protected AbstractMessageDecoder(int type)
decodable
public MessageDecoderResult decodable(IoSession session,
ByteBuffer in)
decode
public MessageDecoderResult decode(IoSession session,
ByteBuffer in,
ProtocolDecoderOutput out)
throws java.lang.Exception
- Throws:
java.lang.Exception
decodeBody
protected abstract AbstractMessage decodeBody(IoSession session,
ByteBuffer in)
- Returns:
- null if the whole body is not read yet