Package utility

Class DynamicBodyPublisher

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

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

      Constructors 
      Constructor Description
      DynamicBodyPublisher​(java.lang.Object objectToMap)  
    • Method Summary

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

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

      • DynamicBodyPublisher

        public DynamicBodyPublisher​(java.lang.Object objectToMap)
    • Method Detail

      • 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>
      • contentLength

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