Package io.micronaut.http.bind.binders
Class PartAnnotationBinder<T>
java.lang.Object
io.micronaut.http.bind.binders.PartAnnotationBinder<T>
- Type Parameters:
T
- The part type
- All Implemented Interfaces:
AnnotatedArgumentBinder<Part,
,T, HttpRequest<?>> ArgumentBinder<T,
,HttpRequest<?>> AnnotatedRequestArgumentBinder<Part,
,T> RequestArgumentBinder<T>
public class PartAnnotationBinder<T>
extends Object
implements AnnotatedRequestArgumentBinder<Part,T>
Skips binding parts because they should be handled by a multipart processor.
- Since:
- 3.6.4
- Author:
- James Kleeh
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.core.bind.ArgumentBinder
ArgumentBinder.BindingResult<T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbind
(ArgumentConversionContext<T> context, HttpRequest<?> source) Bind the given argument from the given source.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.http.bind.binders.RequestArgumentBinder
createSpecific
-
Constructor Details
-
PartAnnotationBinder
public PartAnnotationBinder()
-
-
Method Details
-
bind
public 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()
-
getAnnotationType
- Specified by:
getAnnotationType
in interfaceAnnotatedArgumentBinder<Part,
T, HttpRequest<?>> - Returns:
- The annotation type.
-