@Internal @ChannelHandler.Sharable public class HttpResponseEncoder extends io.netty.handler.codec.MessageToMessageEncoder<MutableHttpResponse<?>>
MutableHttpResponse
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID |
Constructor and Description |
---|
HttpResponseEncoder(MediaTypeCodecRegistry mediaTypeCodecRegistry,
HttpServerConfiguration serverConfiguration)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
encode(io.netty.channel.ChannelHandlerContext context,
MutableHttpResponse<?> response,
java.util.List<java.lang.Object> out) |
acceptOutboundMessage, write
bind, close, connect, deregister, disconnect, flush, read
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
public static final java.lang.String ID
public HttpResponseEncoder(MediaTypeCodecRegistry mediaTypeCodecRegistry, HttpServerConfiguration serverConfiguration)
mediaTypeCodecRegistry
- The media type registryserverConfiguration
- The server configprotected void encode(io.netty.channel.ChannelHandlerContext context, MutableHttpResponse<?> response, java.util.List<java.lang.Object> out)
encode
in class io.netty.handler.codec.MessageToMessageEncoder<MutableHttpResponse<?>>