|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProtocolEncoder
Encodes higher-level message objects into binary or protocol-specific data.
MINA invokes encode(IoSession, Object, ProtocolEncoderOutput)
method with message which is popped from the session write queue, and then
the encoder implementation puts encoded messages (typically IoBuffer
s)
into ProtocolEncoderOutput
by calling ProtocolEncoderOutput.write(Object)
.
Please refer to
TextLineEncoder
example.
ProtocolEncoderException
Method Summary | |
---|---|
void |
dispose(IoSession session)
Releases all resources related with this encoder. |
void |
encode(IoSession session,
Object message,
ProtocolEncoderOutput out)
Encodes higher-level message objects into binary or protocol-specific data. |
Method Detail |
---|
void encode(IoSession session, Object message, ProtocolEncoderOutput out) throws Exception
encode(IoSession, Object, ProtocolEncoderOutput)
method with message which is popped from the session write queue, and then
the encoder implementation puts encoded messages (typically IoBuffer
s)
into ProtocolEncoderOutput
.
Exception
- if the message violated protocol specificationvoid dispose(IoSession session) throws Exception
Exception
- if failed to dispose all resources
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |