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.- Since:
- 4.0.0
- Author:
- Jonas Konrad
-
Nested Class Summary
Nested classes/interfaces inherited from interface 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 ArgumentBinder
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()
-
bindAsync
ExecutionFlow<ArgumentBinder.BindingResult<T>> bindAsync(ArgumentConversionContext<T> context, HttpRequest<?> source)
-