Class PublisherBodyBinder
- java.lang.Object
-
- io.micronaut.http.bind.binders.DefaultBodyAnnotationBinder<org.reactivestreams.Publisher>
-
- io.micronaut.http.server.netty.binders.PublisherBodyBinder
-
- All Implemented Interfaces:
io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<io.micronaut.http.annotation.Body,org.reactivestreams.Publisher,io.micronaut.http.HttpRequest<?>>,io.micronaut.core.bind.ArgumentBinder<org.reactivestreams.Publisher,io.micronaut.http.HttpRequest<?>>,io.micronaut.core.bind.TypeArgumentBinder<org.reactivestreams.Publisher,io.micronaut.http.HttpRequest<?>>,io.micronaut.http.bind.binders.AnnotatedRequestArgumentBinder<io.micronaut.http.annotation.Body,org.reactivestreams.Publisher>,io.micronaut.http.bind.binders.BodyArgumentBinder<org.reactivestreams.Publisher>,io.micronaut.http.bind.binders.NonBlockingBodyArgumentBinder<org.reactivestreams.Publisher>,io.micronaut.http.bind.binders.RequestArgumentBinder<org.reactivestreams.Publisher>,io.micronaut.http.bind.binders.TypedRequestArgumentBinder<org.reactivestreams.Publisher>
@Singleton public class PublisherBodyBinder extends io.micronaut.http.bind.binders.DefaultBodyAnnotationBinder<org.reactivestreams.Publisher> implements io.micronaut.http.bind.binders.NonBlockingBodyArgumentBinder<org.reactivestreams.Publisher>ABodyargument binder for a reactive streamsPublisher.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description PublisherBodyBinder(io.micronaut.core.convert.ConversionService conversionService, HttpContentProcessorResolver httpContentProcessorResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.micronaut.core.type.Argument<org.reactivestreams.Publisher>argumentType()io.micronaut.core.bind.ArgumentBinder.BindingResult<org.reactivestreams.Publisher>bind(io.micronaut.core.convert.ArgumentConversionContext<org.reactivestreams.Publisher> context, io.micronaut.http.HttpRequest<?> source)-
Methods inherited from class io.micronaut.http.bind.binders.DefaultBodyAnnotationBinder
getAnnotationType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
PublisherBodyBinder
public PublisherBodyBinder(io.micronaut.core.convert.ConversionService conversionService, HttpContentProcessorResolver httpContentProcessorResolver)- Parameters:
conversionService- The conversion servicehttpContentProcessorResolver- The http content processor resolver
-
-
Method Detail
-
argumentType
public io.micronaut.core.type.Argument<org.reactivestreams.Publisher> argumentType()
- Specified by:
argumentTypein interfaceio.micronaut.core.bind.TypeArgumentBinder<org.reactivestreams.Publisher,io.micronaut.http.HttpRequest<?>>
-
bind
public io.micronaut.core.bind.ArgumentBinder.BindingResult<org.reactivestreams.Publisher> bind(io.micronaut.core.convert.ArgumentConversionContext<org.reactivestreams.Publisher> context, io.micronaut.http.HttpRequest<?> source)- Specified by:
bindin interfaceio.micronaut.core.bind.ArgumentBinder<org.reactivestreams.Publisher,io.micronaut.http.HttpRequest<?>>- Overrides:
bindin classio.micronaut.http.bind.binders.DefaultBodyAnnotationBinder<org.reactivestreams.Publisher>
-
-