Interface NettyRequestArgumentBinder<T>
- Type Parameters:
T
- A type
- All Superinterfaces:
ArgumentBinder<T,
,HttpRequest<?>> RequestArgumentBinder<T>
A version of
RequestArgumentBinder
that requires NettyHttpRequest
.- Since:
- 4.0.0
- Author:
- Denis Stepanov
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.core.bind.ArgumentBinder
ArgumentBinder.BindingResult<T>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ArgumentBinder.BindingResult<T>
bind
(ArgumentConversionContext<T> context, HttpRequest<?> source) Bind the given argument from the given source.bindForNettyRequest
(ArgumentConversionContext<T> context, NettyHttpRequest<?> nettyHttpRequest) Bind the given argument from the given source.
-
Method Details
-
bind
default ArgumentBinder.BindingResult<T> bind(ArgumentConversionContext<T> context, HttpRequest<?> source) Description copied from interface:ArgumentBinder
Bind the given argument from the given source.- Specified by:
bind
in interfaceArgumentBinder<T,
HttpRequest<?>> - Parameters:
context
- TheArgumentConversionContext
source
- The source- Returns:
- An
Optional
of the value. If no binding was possibleOptional.empty()
-
bindForNettyRequest
ArgumentBinder.BindingResult<T> bindForNettyRequest(ArgumentConversionContext<T> context, NettyHttpRequest<?> nettyHttpRequest) Bind the given argument from the given source.- Parameters:
context
- TheArgumentConversionContext
nettyHttpRequest
- The netty http request- Returns:
- An
Optional
of the value. If no binding was possibleOptional.empty()
-