public class HttpResponseEncoder extends java.lang.Object implements MessageEncoder
MessageEncoder
that encodes HttpResponseMessage
.构造器和说明 |
---|
HttpResponseEncoder() |
限定符和类型 | 方法和说明 |
---|---|
void |
encode(IoSession session,
java.lang.Object message,
ProtocolEncoderOutput out)
Encodes higher-level message objects into binary or protocol-specific data.
|
java.util.Set<java.lang.Class<?>> |
getMessageTypes()
Returns the set of message classes this encoder can encode.
|
public void encode(IoSession session, java.lang.Object message, ProtocolEncoderOutput out) throws java.lang.Exception
MessageEncoder
MessageEncoder.encode(IoSession, Object, ProtocolEncoderOutput)
method with message which is popped from the session write queue, and then
the encoder implementation puts encoded ByteBuffer
s into
ProtocolEncoderOutput
.encode
在接口中 MessageEncoder
java.lang.Exception
- if the message violated protocol specificationpublic java.util.Set<java.lang.Class<?>> getMessageTypes()
MessageEncoder
getMessageTypes
在接口中 MessageEncoder