Package io.micronaut.http.bind.binders
Class DefaultUnmatchedRequestArgumentBinder<T>
java.lang.Object
io.micronaut.http.bind.binders.DefaultUnmatchedRequestArgumentBinder<T>
- Type Parameters:
T- A type
- All Implemented Interfaces:
io.micronaut.core.bind.ArgumentBinder<T,,HttpRequest<?>> PostponedRequestArgumentBinder<T>,RequestArgumentBinder<T>,UnmatchedRequestArgumentBinder
@Internal
public final class DefaultUnmatchedRequestArgumentBinder<T>
extends Object
implements PostponedRequestArgumentBinder<T>, UnmatchedRequestArgumentBinder
The binder will try to bind the argument value which wasn't matched by an annotation or a type.
- Since:
- 4.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.core.bind.ArgumentBinder
io.micronaut.core.bind.ArgumentBinder.BindingResult<T extends Object> -
Constructor Summary
ConstructorsConstructorDescriptionDefaultUnmatchedRequestArgumentBinder(List<RequestArgumentBinder<Object>> internalPreUnmatchedArgumentBinders, List<RequestArgumentBinder<Object>> unmatchedArgumentBinders, List<RequestArgumentBinder<Object>> internalPostUnmatchedArgumentBinders) -
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.core.bind.ArgumentBinder.BindingResult<T>bind(io.micronaut.core.convert.ArgumentConversionContext<T> context, HttpRequest<?> request) io.micronaut.core.bind.ArgumentBinder.BindingResult<T>bindPostponed(io.micronaut.core.convert.ArgumentConversionContext<T> context, HttpRequest<?> request) Bind postponed the given argument from the given source.
-
Constructor Details
-
DefaultUnmatchedRequestArgumentBinder
public DefaultUnmatchedRequestArgumentBinder(List<RequestArgumentBinder<Object>> internalPreUnmatchedArgumentBinders, List<RequestArgumentBinder<Object>> unmatchedArgumentBinders, List<RequestArgumentBinder<Object>> internalPostUnmatchedArgumentBinders) - Parameters:
internalPreUnmatchedArgumentBinders- The internal pre unmatched bindersunmatchedArgumentBinders- The unmatched bindersinternalPostUnmatchedArgumentBinders- The internal post unmatched binders
-
-
Method Details
-
bind
public io.micronaut.core.bind.ArgumentBinder.BindingResult<T> bind(io.micronaut.core.convert.ArgumentConversionContext<T> context, HttpRequest<?> request) - Specified by:
bindin interfaceio.micronaut.core.bind.ArgumentBinder<T,HttpRequest<?>>
-
bindPostponed
public io.micronaut.core.bind.ArgumentBinder.BindingResult<T> bindPostponed(io.micronaut.core.convert.ArgumentConversionContext<T> context, HttpRequest<?> request) Description copied from interface:PostponedRequestArgumentBinderBind postponed the given argument from the given source.- Specified by:
bindPostponedin interfacePostponedRequestArgumentBinder<T>- Parameters:
context- TheArgumentConversionContextrequest- The request- Returns:
- An
Optionalof the value. If no binding was possibleOptional.empty()
-