Class MicronautNettyChannelResolver

java.lang.Object
io.micronaut.spring.web.reactive.MicronautNettyChannelResolver
All Implemented Interfaces:
ChannelResolver

@Singleton @Requires(classes=io.micronaut.http.server.netty.NettyHttpRequest.class) @Requires(beans=io.micronaut.http.server.HttpServerConfiguration.class) @Replaces(DefaultChannelResolver.class) @Primary public class MicronautNettyChannelResolver extends Object implements ChannelResolver
Micronaut specific ChannelResolver implementation.
Since:
1.0
Author:
graemerocher
  • Constructor Details

    • MicronautNettyChannelResolver

      public MicronautNettyChannelResolver(io.micronaut.http.server.HttpServerConfiguration serverConfiguration)
      Default constructor.
      Parameters:
      serverConfiguration - The server config
  • Method Details

    • resolveChannel

      public Optional<io.netty.channel.Channel> resolveChannel(io.micronaut.http.HttpRequest<?> request)
      Description copied from interface: ChannelResolver
      Resolve the backing netty channel.
      Specified by:
      resolveChannel in interface ChannelResolver
      Parameters:
      request - The request
      Returns:
      The channel
    • resolveContentProcessor

      public Optional<io.micronaut.http.server.netty.HttpContentProcessor> resolveContentProcessor(io.micronaut.http.HttpRequest<?> request)
      Description copied from interface: ChannelResolver
      Resolve the content processor.
      Specified by:
      resolveContentProcessor in interface ChannelResolver
      Parameters:
      request - The request
      Returns:
      The processor