Class FormDataHttpContentProcessor

  • All Implemented Interfaces:
    io.micronaut.core.async.publisher.Publishers.MicronautPublisher<io.netty.handler.codec.http.multipart.HttpData>, io.micronaut.core.async.subscriber.Completable, io.micronaut.core.async.subscriber.Emitter<io.netty.buffer.ByteBufHolder>, io.micronaut.core.util.Toggleable, HttpContentProcessor<io.netty.handler.codec.http.multipart.HttpData>, org.reactivestreams.Processor<io.netty.buffer.ByteBufHolder,​io.netty.handler.codec.http.multipart.HttpData>, org.reactivestreams.Publisher<io.netty.handler.codec.http.multipart.HttpData>, org.reactivestreams.Subscriber<io.netty.buffer.ByteBufHolder>

    @Internal
    public class FormDataHttpContentProcessor
    extends AbstractHttpContentProcessor<io.netty.handler.codec.http.multipart.HttpData>

    Decodes MediaType.MULTIPART_FORM_DATA in a non-blocking manner.

    Designed to be used by a single thread

    Since:
    1.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void doAfterComplete()  
      protected void doAfterOnError​(java.lang.Throwable throwable)  
      protected void doOnSubscribe​(org.reactivestreams.Subscription subscription, org.reactivestreams.Subscriber<? super io.netty.handler.codec.http.multipart.HttpData> subscriber)  
      boolean isEnabled()  
      protected void onData​(io.netty.buffer.ByteBufHolder message)
      Called after verifying the data of the message.
      • Methods inherited from class io.micronaut.core.async.processor.SingleSubscriberProcessor

        currentSubscriber, doAfterOnSubscribe, doOnComplete, doOnError, doOnSubscribe, getSubscriber, subscribe
      • Methods inherited from class io.micronaut.core.async.subscriber.CompletionAwareSubscriber

        isComplete, onComplete, onError, onNext, onSubscribe
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.reactivestreams.Publisher

        subscribe
      • Methods inherited from interface org.reactivestreams.Subscriber

        onComplete, onError, onNext, onSubscribe
    • Method Detail

      • isEnabled

        public boolean isEnabled()
      • doOnSubscribe

        protected void doOnSubscribe​(org.reactivestreams.Subscription subscription,
                                     org.reactivestreams.Subscriber<? super io.netty.handler.codec.http.multipart.HttpData> subscriber)
        Overrides:
        doOnSubscribe in class io.micronaut.core.async.processor.SingleSubscriberProcessor<io.netty.buffer.ByteBufHolder,​io.netty.handler.codec.http.multipart.HttpData>
      • onData

        protected void onData​(io.netty.buffer.ByteBufHolder message)
        Description copied from class: AbstractHttpContentProcessor
        Called after verifying the data of the message.
        Specified by:
        onData in class AbstractHttpContentProcessor<io.netty.handler.codec.http.multipart.HttpData>
        Parameters:
        message - The message
      • doAfterOnError

        protected void doAfterOnError​(java.lang.Throwable throwable)
        Overrides:
        doAfterOnError in class io.micronaut.core.async.processor.SingleSubscriberProcessor<io.netty.buffer.ByteBufHolder,​io.netty.handler.codec.http.multipart.HttpData>
      • doAfterComplete

        protected void doAfterComplete()
        Overrides:
        doAfterComplete in class io.micronaut.core.async.processor.SingleSubscriberProcessor<io.netty.buffer.ByteBufHolder,​io.netty.handler.codec.http.multipart.HttpData>