Package io.micronaut.http.filter
Interface BaseFilterProcessor.AsyncBodyBinder<T>
- Type Parameters:
T
- Arg type
- All Superinterfaces:
ArgumentBinder<T,
HttpRequest<?>>
- Enclosing class:
- BaseFilterProcessor<A extends Annotation>
public static interface BaseFilterProcessor.AsyncBodyBinder<T>
extends ArgumentBinder<T,HttpRequest<?>>
Interface that signals to
FilterRunner
that we should wait for the request body to
arrive before running this binder.-
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.bindAsync
(ArgumentConversionContext<T> context, HttpRequest<?> source) Methods inherited from interface io.micronaut.core.bind.ArgumentBinder
createSpecific
-
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()
-
bindAsync
ExecutionFlow<ArgumentBinder.BindingResult<T>> bindAsync(ArgumentConversionContext<T> context, HttpRequest<?> source)
-