|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mina.filter.codec.netty.NettyEncoder
public class NettyEncoder
A MINA ProtocolEncoder that encodes Netty2 Messages
into byte buffers.
| Constructor Summary | |
|---|---|
NettyEncoder()
Creates a new instance. |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NettyEncoder()
| Method Detail |
|---|
public void encode(IoSession session,
Object message,
ProtocolEncoderOutput out)
throws Exception
ProtocolEncoderProtocolEncoder.encode(IoSession, Object, ProtocolEncoderOutput)
method with message which is popped from the session write queue, and then
the encoder implementation puts encoded ByteBuffers into
ProtocolEncoderOutput.
encode in interface ProtocolEncoderException - if the message violated protocol specification
public void dispose(IoSession session)
throws Exception
ProtocolEncoder
dispose in interface ProtocolEncoderException - if failed to dispose all resources
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||