Package io.micronaut.spring.web.reactive
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 Summary
ConstructorDescriptionMicronautNettyChannelResolver
(io.micronaut.http.server.HttpServerConfiguration serverConfiguration) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionOptional<io.netty.channel.Channel>
resolveChannel
(io.micronaut.http.HttpRequest<?> request) Resolve the backing netty channel.Optional<io.micronaut.http.server.netty.HttpContentProcessor>
resolveContentProcessor
(io.micronaut.http.HttpRequest<?> request) Resolve the content processor.
-
Constructor Details
-
MicronautNettyChannelResolver
public MicronautNettyChannelResolver(io.micronaut.http.server.HttpServerConfiguration serverConfiguration) Default constructor.- Parameters:
serverConfiguration
- The server config
-
-
Method Details
-
resolveChannel
Description copied from interface:ChannelResolver
Resolve the backing netty channel.- Specified by:
resolveChannel
in interfaceChannelResolver
- 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 interfaceChannelResolver
- Parameters:
request
- The request- Returns:
- The processor
-