Class 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>
    A Body argument binder for a reactive streams Publisher.
    Since:
    1.0
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface io.micronaut.core.bind.ArgumentBinder

        io.micronaut.core.bind.ArgumentBinder.BindingResult<T extends java.lang.Object>
    • Field Summary

      • Fields inherited from class io.micronaut.http.bind.binders.DefaultBodyAnnotationBinder

        conversionService
    • 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
      • Methods inherited from interface io.micronaut.http.bind.binders.BodyArgumentBinder

        getAnnotationType
      • Methods inherited from interface io.micronaut.http.bind.binders.TypedRequestArgumentBinder

        superTypes
    • Constructor Detail

      • PublisherBodyBinder

        public PublisherBodyBinder​(io.micronaut.core.convert.ConversionService conversionService,
                                   HttpContentProcessorResolver httpContentProcessorResolver)
        Parameters:
        conversionService - The conversion service
        httpContentProcessorResolver - The http content processor resolver
    • Method Detail

      • argumentType

        public io.micronaut.core.type.Argument<org.reactivestreams.Publisher> argumentType()
        Specified by:
        argumentType in interface io.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:
        bind in interface io.micronaut.core.bind.ArgumentBinder<org.reactivestreams.Publisher,​io.micronaut.http.HttpRequest<?>>
        Overrides:
        bind in class io.micronaut.http.bind.binders.DefaultBodyAnnotationBinder<org.reactivestreams.Publisher>