Class NettyServerRequestBinderRegistry
java.lang.Object
io.micronaut.http.server.netty.binders.NettyServerRequestBinderRegistry
- All Implemented Interfaces:
ArgumentBinderRegistry<HttpRequest<?>>
,RequestBinderRegistry
@Internal
@Singleton
@Order(100)
public final class NettyServerRequestBinderRegistry
extends Object
implements RequestBinderRegistry
A Netty request binder registry.
- Since:
- 4.0.0
- Author:
- Denis Stepanov
-
Constructor Summary
ConstructorDescriptionNettyServerRequestBinderRegistry
(ConversionService conversionService, List<RequestArgumentBinder> binders, BeanLocator beanLocator, BeanProvider<HttpServerConfiguration> httpServerConfiguration, BeanProvider<ExecutorService> executorService, MessageBodyHandlerRegistry bodyHandlerRegistry) -
Method Summary
Modifier and TypeMethodDescription<T> void
addArgumentBinder
(ArgumentBinder<T, HttpRequest<?>> binder) Adds a request argument binder to the registry.<T> Optional<ArgumentBinder<T,
HttpRequest<?>>> findArgumentBinder
(Argument<T> argument) Locate anArgumentBinder
for the given argument.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.core.bind.ArgumentBinderRegistry
addRequestArgumentBinder, findArgumentBinder
Methods inherited from interface io.micronaut.http.bind.RequestBinderRegistry
addUnmatchedRequestArgumentBinder
-
Constructor Details
-
NettyServerRequestBinderRegistry
public NettyServerRequestBinderRegistry(ConversionService conversionService, List<RequestArgumentBinder> binders, BeanLocator beanLocator, BeanProvider<HttpServerConfiguration> httpServerConfiguration, @Named("blocking") BeanProvider<ExecutorService> executorService, MessageBodyHandlerRegistry bodyHandlerRegistry)
-
-
Method Details
-
addArgumentBinder
Description copied from interface:ArgumentBinderRegistry
Adds a request argument binder to the registry.- Specified by:
addArgumentBinder
in interfaceArgumentBinderRegistry<HttpRequest<?>>
- Type Parameters:
T
- The argument type- Parameters:
binder
- The binder
-
findArgumentBinder
Description copied from interface:ArgumentBinderRegistry
Locate anArgumentBinder
for the given argument.- Specified by:
findArgumentBinder
in interfaceArgumentBinderRegistry<HttpRequest<?>>
- Type Parameters:
T
- The argument type- Parameters:
argument
- The argument- Returns:
- An
Optional
ofArgumentBinder
-