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.Methods inherited from interface io.micronaut.http.bind.binders.RequestArgumentBinder
createSpecific
-
Method Details
-
bind
default ArgumentBinder.BindingResult<T> bind(ArgumentConversionContext<T> context, HttpRequest<?> source) Description copied from interface:ArgumentBinderBind the given argument from the given source.- Specified by:
bindin interfaceArgumentBinder<T,HttpRequest<?>> - Parameters:
context- TheArgumentConversionContextsource- The source- Returns:
- An
Optionalof 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- TheArgumentConversionContextnettyHttpRequest- The netty http request- Returns:
- An
Optionalof the value. If no binding was possibleOptional.empty()
-