Class InputStreamBodyBinder
java.lang.Object
io.micronaut.http.server.netty.binders.InputStreamBodyBinder
- All Implemented Interfaces:
AnnotatedArgumentBinder<Body,
,InputStream, HttpRequest<?>> ArgumentBinder<InputStream,
,HttpRequest<?>> TypeArgumentBinder<InputStream,
,HttpRequest<?>> AnnotatedRequestArgumentBinder<Body,
,InputStream> BodyArgumentBinder<InputStream>
,NonBlockingBodyArgumentBinder<InputStream>
,RequestArgumentBinder<InputStream>
,TypedRequestArgumentBinder<InputStream>
@Internal
public class InputStreamBodyBinder
extends Object
implements NonBlockingBodyArgumentBinder<InputStream>
Responsible for binding to a
InputStream
argument from the body of the request.- Since:
- 2.5.0
- Author:
- James Kleeh
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.core.bind.ArgumentBinder
ArgumentBinder.BindingResult<T>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbind
(ArgumentConversionContext<InputStream> context, HttpRequest<?> source) Bind the given argument from the given source.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.http.bind.binders.BodyArgumentBinder
getAnnotationType
Methods inherited from interface io.micronaut.http.bind.binders.TypedRequestArgumentBinder
matches, superTypes
-
Field Details
-
TYPE
-
-
Constructor Details
-
InputStreamBodyBinder
- Parameters:
processorResolver
- The http content processor resolver
-
-
Method Details
-
argumentType
- Specified by:
argumentType
in interfaceTypeArgumentBinder<InputStream,
HttpRequest<?>> - Returns:
- The argument type.
-
bind
public ArgumentBinder.BindingResult<InputStream> bind(ArgumentConversionContext<InputStream> context, HttpRequest<?> source) Description copied from interface:ArgumentBinder
Bind the given argument from the given source.- Specified by:
bind
in interfaceArgumentBinder<InputStream,
HttpRequest<?>> - Parameters:
context
- TheArgumentConversionContext
source
- The source- Returns:
- An
Optional
of the value. If no binding was possibleOptional.empty()
-