Class MultipartBodyArgumentBinder
java.lang.Object
io.micronaut.http.server.netty.multipart.MultipartBodyArgumentBinder
- All Implemented Interfaces:
AnnotatedArgumentBinder<Body, MultipartBody, HttpRequest<?>>, ArgumentBinder<MultipartBody, HttpRequest<?>>, TypeArgumentBinder<MultipartBody, HttpRequest<?>>, AnnotatedRequestArgumentBinder<Body, MultipartBody>, BodyArgumentBinder<MultipartBody>, NonBlockingBodyArgumentBinder<MultipartBody>, RequestArgumentBinder<MultipartBody>, TypedRequestArgumentBinder<MultipartBody>
@Internal
public class MultipartBodyArgumentBinder
extends Object
implements NonBlockingBodyArgumentBinder<MultipartBody>
A
Body argument binder for a MultipartBody argument.- Since:
- 1.3.0
- Author:
- James Kleeh
-
Nested Class Summary
Nested classes/interfaces inherited from interface ArgumentBinder
ArgumentBinder.BindingResult<T> -
Constructor Summary
ConstructorsConstructorDescriptionMultipartBodyArgumentBinder(BeanProvider<NettyHttpServerConfiguration> httpServerConfiguration) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionbind(ArgumentConversionContext<MultipartBody> 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 BodyArgumentBinder
getAnnotationTypeMethods inherited from interface RequestArgumentBinder
createSpecificMethods inherited from interface TypedRequestArgumentBinder
matches, superTypes
-
Constructor Details
-
MultipartBodyArgumentBinder
public MultipartBodyArgumentBinder(BeanProvider<NettyHttpServerConfiguration> httpServerConfiguration) Default constructor.- Parameters:
httpServerConfiguration- The server configuration
-
-
Method Details
-
argumentType
- Specified by:
argumentTypein interfaceTypeArgumentBinder<MultipartBody, HttpRequest<?>>- Returns:
- The argument type.
-
bind
public ArgumentBinder.BindingResult<MultipartBody> bind(ArgumentConversionContext<MultipartBody> context, HttpRequest<?> source) Description copied from interface:ArgumentBinderBind the given argument from the given source.- Specified by:
bindin interfaceArgumentBinder<MultipartBody, HttpRequest<?>>- Parameters:
context- TheArgumentConversionContextsource- The source- Returns:
- An
Optionalof the value. If no binding was possibleOptional.empty()
-