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 ArgumentBinder
ArgumentBinder.BindingResult<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbind(ArgumentConversionContext<T> context, HttpRequest<?> source) Bind the given argument from the given source.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RequestArgumentBinder
createSpecific
-
Constructor Details
-
PartAnnotationBinder
public PartAnnotationBinder()
-
-
Method Details
-
bind
public 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()
-
getAnnotationType
- Specified by:
getAnnotationTypein interfaceAnnotatedArgumentBinder<Part, T, HttpRequest<?>>- Returns:
- The annotation type.
-