@ChannelHandler.Sharable
@Internal
public class HttpRequestDecoder
extends io.netty.handler.codec.MessageToMessageDecoder<io.netty.handler.codec.http.HttpRequest>
implements io.micronaut.core.order.Ordered
MessageToMessageDecoder that decodes a Netty HttpRequest into a Micronaut
HttpRequest.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ID
Constant for Micronaut http decoder.
|
| Constructor and Description |
|---|
HttpRequestDecoder(io.micronaut.runtime.server.EmbeddedServer embeddedServer,
io.micronaut.core.convert.ConversionService<?> conversionService,
io.micronaut.http.server.HttpServerConfiguration configuration,
io.micronaut.context.event.ApplicationEventPublisher<io.micronaut.http.context.event.HttpRequestReceivedEvent> httpRequestReceivedEventPublisher) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpRequest msg,
java.util.List<java.lang.Object> out) |
acceptInboundMessage, channelReadchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic static final java.lang.String ID
public HttpRequestDecoder(io.micronaut.runtime.server.EmbeddedServer embeddedServer,
io.micronaut.core.convert.ConversionService<?> conversionService,
io.micronaut.http.server.HttpServerConfiguration configuration,
io.micronaut.context.event.ApplicationEventPublisher<io.micronaut.http.context.event.HttpRequestReceivedEvent> httpRequestReceivedEventPublisher)
embeddedServer - The embedded serviceconversionService - The conversion serviceconfiguration - The Http server configurationhttpRequestReceivedEventPublisher - The publisher of HttpRequestReceivedEvent