@Internal public class InputStreamBodyBinder extends java.lang.Object implements NonBlockingBodyArgumentBinder<java.io.InputStream>
InputStream
argument from the body of the request.ArgumentBinder.BindingResult<T>
Modifier and Type | Field and Description |
---|---|
static Argument<java.io.InputStream> |
TYPE |
Constructor and Description |
---|
InputStreamBodyBinder(HttpContentProcessorResolver processorResolver) |
Modifier and Type | Method and Description |
---|---|
Argument<java.io.InputStream> |
argumentType() |
ArgumentBinder.BindingResult<java.io.InputStream> |
bind(ArgumentConversionContext<java.io.InputStream> context,
HttpRequest<?> source)
Bind the given argument from the given source.
|
boolean |
supportsSuperTypes()
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnnotationType
of
superTypes
public static final Argument<java.io.InputStream> TYPE
public InputStreamBodyBinder(HttpContentProcessorResolver processorResolver)
processorResolver
- The http content processor resolver@Deprecated public boolean supportsSuperTypes()
TypedRequestArgumentBinder
T
implements are candidates for binding.supportsSuperTypes
in interface TypedRequestArgumentBinder<java.io.InputStream>
public Argument<java.io.InputStream> argumentType()
argumentType
in interface TypeArgumentBinder<java.io.InputStream,HttpRequest<?>>
public ArgumentBinder.BindingResult<java.io.InputStream> bind(ArgumentConversionContext<java.io.InputStream> context, HttpRequest<?> source)
ArgumentBinder
bind
in interface ArgumentBinder<java.io.InputStream,HttpRequest<?>>
context
- The ArgumentConversionContext
source
- The sourceOptional
of the value. If no binding was possible Optional.empty()