@Internal @ChannelHandler.Sharable public class HttpResponseEncoder extends io.netty.handler.codec.MessageToMessageEncoder<MutableHttpResponse<?>>
MutableHttpResponse
.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,
List<Object> out) |
acceptOutboundMessage, write
bind, close, connect, deregister, disconnect, flush, read
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
public static final 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, List<Object> out)
encode
in class io.netty.handler.codec.MessageToMessageEncoder<MutableHttpResponse<?>>