public class MultipartBodyArgumentBinder extends java.lang.Object implements NonBlockingBodyArgumentBinder<MultipartBody>
Body
argument binder for a MultipartBody
argument.ArgumentBinder.BindingResult<T>
Constructor and Description |
---|
MultipartBodyArgumentBinder(BeanLocator beanLocator,
javax.inject.Provider<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, wait
getAnnotationType
of
superTypes
public MultipartBodyArgumentBinder(BeanLocator beanLocator, javax.inject.Provider<HttpServerConfiguration> httpServerConfiguration)
beanLocator
- The bean locatorhttpServerConfiguration
- The server configurationpublic boolean supportsSuperTypes()
TypedRequestArgumentBinder
T
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)
ArgumentBinder
bind
in interface ArgumentBinder<MultipartBody,HttpRequest<?>>
context
- The ArgumentConversionContext
source
- The sourceOptional
of the value. If no binding was possible Optional.empty()