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