public class HttpClientEncoder extends Object implements ProtocolEncoder
Constructor and Description |
---|
HttpClientEncoder() |
Modifier and Type | Method and Description |
---|---|
void |
dispose(IoSession arg0)
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.
|
public HttpClientEncoder()
public void encode(IoSession session, Object message, ProtocolEncoderOutput out) throws 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
Exception
- if the message violated protocol specificationpublic void dispose(IoSession arg0) throws Exception
ProtocolEncoder
dispose
in interface ProtocolEncoder
Exception
- if failed to dispose all resourcesCopyright © 2004–2015 Apache MINA Project. All rights reserved.