|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mina.example.sumup.codec.AbstractMessageEncoder<T>
public abstract class AbstractMessageEncoder<T extends AbstractMessage>
A MessageEncoder that encodes message header and forwards
the encoding of body to a subclass.
| Constructor Summary | |
|---|---|
protected |
AbstractMessageEncoder(int type)
|
| Method Summary | |
|---|---|
void |
encode(IoSession session,
T message,
ProtocolEncoderOutput out)
Encodes higher-level message objects into binary or protocol-specific data. |
protected abstract void |
encodeBody(IoSession session,
T message,
IoBuffer out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractMessageEncoder(int type)
| Method Detail |
|---|
public void encode(IoSession session,
T message,
ProtocolEncoderOutput out)
throws java.lang.Exception
MessageEncoderMessageEncoder.encode(IoSession, Object, ProtocolEncoderOutput)
method with message which is popped from the session write queue, and then
the encoder implementation puts encoded IoBuffers into
ProtocolEncoderOutput.
encode in interface MessageEncoder<T extends AbstractMessage>java.lang.Exception - if the message violated protocol specification
protected abstract void encodeBody(IoSession session,
T message,
IoBuffer out)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||