@Internal public class InputStreamBodyBinder extends Object implements NonBlockingBodyArgumentBinder<InputStream>
InputStream argument from the body of the request.ArgumentBinder.BindingResult<T>| Modifier and Type | Field and Description |
|---|---|
static Argument<InputStream> |
TYPE |
| Constructor and Description |
|---|
InputStreamBodyBinder(HttpContentProcessorResolver processorResolver,
ExecutorService executorService) |
| Modifier and Type | Method and Description |
|---|---|
Argument<InputStream> |
argumentType() |
ArgumentBinder.BindingResult<InputStream> |
bind(ArgumentConversionContext<InputStream> context,
HttpRequest<?> source)
Bind the given argument from the given source.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAnnotationTypeofsuperTypespublic static final Argument<InputStream> TYPE
public InputStreamBodyBinder(HttpContentProcessorResolver processorResolver, ExecutorService executorService)
processorResolver - The http content processor resolverexecutorService - The executor service to usepublic Argument<InputStream> argumentType()
argumentType in interface TypeArgumentBinder<InputStream,HttpRequest<?>>public ArgumentBinder.BindingResult<InputStream> bind(ArgumentConversionContext<InputStream> context, HttpRequest<?> source)
ArgumentBinderbind in interface ArgumentBinder<InputStream,HttpRequest<?>>context - The ArgumentConversionContextsource - The sourceOptional of the value. If no binding was possible Optional.empty()