@Singleton
public class PublisherBodyBinder
extends io.micronaut.http.bind.binders.DefaultBodyAnnotationBinder<org.reactivestreams.Publisher>
implements io.micronaut.http.bind.binders.NonBlockingBodyArgumentBinder<org.reactivestreams.Publisher>
Body argument binder for a reactive streams Publisher.| Constructor and Description |
|---|
PublisherBodyBinder(io.micronaut.core.convert.ConversionService conversionService,
HttpContentProcessorResolver httpContentProcessorResolver) |
| Modifier and Type | Method and 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) |
getAnnotationTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic PublisherBodyBinder(io.micronaut.core.convert.ConversionService conversionService,
HttpContentProcessorResolver httpContentProcessorResolver)
conversionService - The conversion servicehttpContentProcessorResolver - The http content processor resolverpublic io.micronaut.core.type.Argument<org.reactivestreams.Publisher> argumentType()
argumentType in interface io.micronaut.core.bind.TypeArgumentBinder<org.reactivestreams.Publisher,io.micronaut.http.HttpRequest<?>>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)
bind in interface io.micronaut.core.bind.ArgumentBinder<org.reactivestreams.Publisher,io.micronaut.http.HttpRequest<?>>bind in class io.micronaut.http.bind.binders.DefaultBodyAnnotationBinder<org.reactivestreams.Publisher>