Class SingleBodyBinder
java.lang.Object
io.micronaut.rxjava2.server.upload.binders.SingleBodyBinder
- All Implemented Interfaces:
io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<io.micronaut.http.annotation.Body,
,io.reactivex.Single, io.micronaut.http.HttpRequest<?>> io.micronaut.core.bind.ArgumentBinder<io.reactivex.Single,
,io.micronaut.http.HttpRequest<?>> io.micronaut.core.bind.TypeArgumentBinder<io.reactivex.Single,
,io.micronaut.http.HttpRequest<?>> io.micronaut.http.bind.binders.AnnotatedRequestArgumentBinder<io.micronaut.http.annotation.Body,
,io.reactivex.Single> io.micronaut.http.bind.binders.BodyArgumentBinder<io.reactivex.Single>
,io.micronaut.http.bind.binders.NonBlockingBodyArgumentBinder<io.reactivex.Single>
,io.micronaut.http.bind.binders.RequestArgumentBinder<io.reactivex.Single>
,io.micronaut.http.bind.binders.TypedRequestArgumentBinder<io.reactivex.Single>
@Internal
public class SingleBodyBinder
extends Object
implements io.micronaut.http.bind.binders.NonBlockingBodyArgumentBinder<io.reactivex.Single>
Bindings
Body
arguments of type Single
.- Since:
- 1.0
- Author:
- Graeme Rocher
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.core.bind.ArgumentBinder
io.micronaut.core.bind.ArgumentBinder.BindingResult<T extends Object>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final io.micronaut.core.type.Argument<io.reactivex.Single>
-
Constructor Summary
ConstructorDescriptionSingleBodyBinder
(io.micronaut.http.bind.binders.BodyArgumentBinder<org.reactivestreams.Publisher<Object>> publisherBodyBinder) -
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.core.type.Argument<io.reactivex.Single>
io.micronaut.core.bind.ArgumentBinder.BindingResult<io.reactivex.Single>
bind
(io.micronaut.core.convert.ArgumentConversionContext<io.reactivex.Single> context, io.micronaut.http.HttpRequest<?> 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
-
Field Details
-
TYPE
public static final io.micronaut.core.type.Argument<io.reactivex.Single> TYPE
-
-
Constructor Details
-
SingleBodyBinder
public SingleBodyBinder(io.micronaut.http.bind.binders.BodyArgumentBinder<org.reactivestreams.Publisher<Object>> publisherBodyBinder) - Parameters:
publisherBodyBinder
- the publisher body binder
-
-
Method Details
-
superTypes
- Specified by:
superTypes
in interfaceio.micronaut.http.bind.binders.TypedRequestArgumentBinder<io.reactivex.Single>
-
argumentType
public io.micronaut.core.type.Argument<io.reactivex.Single> argumentType()- Specified by:
argumentType
in interfaceio.micronaut.core.bind.TypeArgumentBinder<io.reactivex.Single,
io.micronaut.http.HttpRequest<?>>
-
bind
public io.micronaut.core.bind.ArgumentBinder.BindingResult<io.reactivex.Single> bind(io.micronaut.core.convert.ArgumentConversionContext<io.reactivex.Single> context, io.micronaut.http.HttpRequest<?> source) - Specified by:
bind
in interfaceio.micronaut.core.bind.ArgumentBinder<io.reactivex.Single,
io.micronaut.http.HttpRequest<?>>
-