|
||||||||||
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(ProtocolSession, Object, ProtocolEncoderOutput)
method with message which is popped from the session write queue, and then
the encoder implementation puts encoded ByteBuffer
s into
ProtocolEncoderOutput
by calling
ProtocolEncoderOutput.write(ByteBuffer)
.
Please refer to
TextLineEncoder
example.
Method Summary | |
---|---|
void |
encode(ProtocolSession session,
Object message,
ProtocolEncoderOutput out)
Encodes higher-level message objects into binary or protocol-specific data. |
Method Detail |
---|
void encode(ProtocolSession session, Object message, ProtocolEncoderOutput out) throws ProtocolViolationException
encode(ProtocolSession, Object, ProtocolEncoderOutput)
method with message which is popped from the session write queue, and then
the encoder implementation puts encoded ByteBuffer
s into
ProtocolEncoderOutput
.
ProtocolViolationException
- if the message violated protocol
specification
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |