public class HttpServerEncoder extends java.lang.Object implements ProtocolEncoder
| Modifier and Type | Field and Description |
|---|---|
private static java.nio.charset.CharsetEncoder |
ENCODER |
private static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
HttpServerEncoder() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
private static final org.slf4j.Logger LOG
private static final java.nio.charset.CharsetEncoder ENCODER
public void encode(IoSession session, java.lang.Object message, ProtocolEncoderOutput out) throws java.lang.Exception
ProtocolEncoderProtocolEncoder.encode(IoSession, Object, ProtocolEncoderOutput)
method with message which is popped from the session write queue, and then
the encoder implementation puts encoded messages (typically IoBuffers)
into ProtocolEncoderOutput.encode in interface ProtocolEncoderjava.lang.Exception - if the message violated protocol specificationpublic void dispose(IoSession session) throws java.lang.Exception
ProtocolEncoderdispose in interface ProtocolEncoderjava.lang.Exception - if failed to dispose all resources