public class HttpClientEncoder extends java.lang.Object implements ProtocolEncoder
构造器和说明 |
---|
HttpClientEncoder() |
限定符和类型 | 方法和说明 |
---|---|
void |
dispose(IoSession arg0)
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.
|
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
在接口中 ProtocolEncoder
session
- The current Sessionmessage
- the message to encodeout
- The ProtocolEncoderOutput
that will receive the encoded messagejava.lang.Exception
- if the message violated protocol specificationpublic void dispose(IoSession arg0) throws java.lang.Exception
ProtocolEncoder
dispose
在接口中 ProtocolEncoder
arg0
- The current Sessionjava.lang.Exception
- if failed to dispose all resources