Module methanol

Class ForwardingBodySubscriber<T>

  • All Implemented Interfaces:
    java.net.http.HttpResponse.BodySubscriber<T>, java.util.concurrent.Flow.Subscriber<java.util.List<java.nio.ByteBuffer>>

    public class ForwardingBodySubscriber<T>
    extends ForwardingSubscriber<java.util.List<java.nio.ByteBuffer>>
    implements java.net.http.HttpResponse.BodySubscriber<T>
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ForwardingBodySubscriber​(java.net.http.HttpResponse.BodySubscriber<T> delegate)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.net.http.HttpResponse.BodySubscriber<T> delegate()
      Returns the downstream to which signals are forwarded.
      java.util.concurrent.CompletionStage<T> getBody()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.concurrent.Flow.Subscriber

        onComplete, onError, onNext, onSubscribe
    • Constructor Detail

      • ForwardingBodySubscriber

        protected ForwardingBodySubscriber​(java.net.http.HttpResponse.BodySubscriber<T> delegate)
    • Method Detail

      • delegate

        protected final java.net.http.HttpResponse.BodySubscriber<T> delegate()
        Description copied from class: ForwardingSubscriber
        Returns the downstream to which signals are forwarded.
        Specified by:
        delegate in class ForwardingSubscriber<java.util.List<java.nio.ByteBuffer>>
      • getBody

        public java.util.concurrent.CompletionStage<T> getBody()
        Specified by:
        getBody in interface java.net.http.HttpResponse.BodySubscriber<T>