@Singleton public class MultipartBodyArgumentBinder extends Object implements NonBlockingBodyArgumentBinder<MultipartBody>
Body argument binder for a MultipartBody argument.ArgumentBinder.BindingResult<T>| Constructor and Description |
|---|
MultipartBodyArgumentBinder(BeanLocator beanLocator,
HttpServerConfiguration httpServerConfiguration)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Argument<MultipartBody> |
argumentType() |
ArgumentBinder.BindingResult<MultipartBody> |
bind(ArgumentConversionContext<MultipartBody> context,
HttpRequest<?> source)
Bind the given argument from the given source.
|
boolean |
supportsSuperTypes()
Determines whether arguments that are an interface that
T
implements are candidates for binding. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAnnotationTypeofpublic MultipartBodyArgumentBinder(BeanLocator beanLocator, HttpServerConfiguration httpServerConfiguration)
beanLocator - The bean locatorhttpServerConfiguration - The server configurationpublic boolean supportsSuperTypes()
TypedRequestArgumentBinderT
implements are candidates for binding.supportsSuperTypes in interface TypedRequestArgumentBinder<MultipartBody>public Argument<MultipartBody> argumentType()
argumentType in interface TypeArgumentBinder<MultipartBody,HttpRequest<?>>public ArgumentBinder.BindingResult<MultipartBody> bind(ArgumentConversionContext<MultipartBody> context, HttpRequest<?> source)
ArgumentBinderbind in interface ArgumentBinder<MultipartBody,HttpRequest<?>>context - The ArgumentConversionContextsource - The sourceOptional of the value. If no binding was possible Optional.empty()