|
||||||||||
| 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)
|
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
encode in interface MessageEncoder<T extends AbstractMessage>java.lang.Exception
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 | |||||||||