Class HttpResponseEncoder
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelOutboundHandlerAdapter
-
- io.netty.handler.codec.MessageToMessageEncoder<io.micronaut.http.MutableHttpResponse<?>>
-
- io.micronaut.http.server.netty.encoders.HttpResponseEncoder
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelOutboundHandler
@Internal @Sharable public class HttpResponseEncoder extends io.netty.handler.codec.MessageToMessageEncoder<io.micronaut.http.MutableHttpResponse<?>>Encodes Micronaut's representation of anMutableHttpResponse.- Since:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringID
-
Constructor Summary
Constructors Constructor Description HttpResponseEncoder(io.micronaut.http.codec.MediaTypeCodecRegistry mediaTypeCodecRegistry, io.micronaut.http.server.HttpServerConfiguration serverConfiguration)Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidencode(io.netty.channel.ChannelHandlerContext context, io.micronaut.http.MutableHttpResponse<?> response, java.util.List<java.lang.Object> out)-
Methods inherited from class io.netty.handler.codec.MessageToMessageEncoder
acceptOutboundMessage, write
-
Methods inherited from class io.netty.channel.ChannelOutboundHandlerAdapter
bind, close, connect, deregister, disconnect, flush, read
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Field Detail
-
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HttpResponseEncoder
public HttpResponseEncoder(io.micronaut.http.codec.MediaTypeCodecRegistry mediaTypeCodecRegistry, io.micronaut.http.server.HttpServerConfiguration serverConfiguration)Default constructor.- Parameters:
mediaTypeCodecRegistry- The media type registryserverConfiguration- The server config
-
-