|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mina.example.imagine.step1.codec.ImageRequestEncoder
public class ImageRequestEncoder
an encoder for ImageRequest
objects
Constructor Summary | |
---|---|
ImageRequestEncoder()
|
Method Summary | |
---|---|
void |
dispose(IoSession session)
Releases all resources related with this encoder. |
void |
encode(IoSession session,
java.lang.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 ImageRequestEncoder()
Method Detail |
---|
public void encode(IoSession session, java.lang.Object message, ProtocolEncoderOutput out) throws java.lang.Exception
ProtocolEncoder
ProtocolEncoder.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
.
encode
in interface ProtocolEncoder
java.lang.Exception
- if the message violated protocol specificationpublic void dispose(IoSession session) throws java.lang.Exception
ProtocolEncoder
dispose
in interface ProtocolEncoder
java.lang.Exception
- if failed to dispose all resources
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |