Module methanol

Class ForwardingBodyPublisher

  • All Implemented Interfaces:
    java.net.http.HttpRequest.BodyPublisher, java.util.concurrent.Flow.Publisher<java.nio.ByteBuffer>
    Direct Known Subclasses:
    MimeBodyPublisherAdapter

    public class ForwardingBodyPublisher
    extends java.lang.Object
    implements java.net.http.HttpRequest.BodyPublisher
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ForwardingBodyPublisher​(java.net.http.HttpRequest.BodyPublisher delegate)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long contentLength()  
      protected java.net.http.HttpRequest.BodyPublisher delegate()  
      void subscribe​(java.util.concurrent.Flow.Subscriber<? super java.nio.ByteBuffer> subscriber)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ForwardingBodyPublisher

        protected ForwardingBodyPublisher​(java.net.http.HttpRequest.BodyPublisher delegate)
    • Method Detail

      • delegate

        protected final java.net.http.HttpRequest.BodyPublisher delegate()
      • contentLength

        public long contentLength()
        Specified by:
        contentLength in interface java.net.http.HttpRequest.BodyPublisher
      • subscribe

        public void subscribe​(java.util.concurrent.Flow.Subscriber<? super java.nio.ByteBuffer> subscriber)
        Specified by:
        subscribe in interface java.util.concurrent.Flow.Publisher<java.nio.ByteBuffer>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object