Package de.fiveminds.client.utility
Class DynamicBodyPublisher
- java.lang.Object
-
- de.fiveminds.client.utility.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 longcontentLength()voidsubscribe(java.util.concurrent.Flow.Subscriber<? super java.nio.ByteBuffer> subscriber)
-
-
-
Method Detail
-
subscribe
public void subscribe(java.util.concurrent.Flow.Subscriber<? super java.nio.ByteBuffer> subscriber)
- Specified by:
subscribein interfacejava.util.concurrent.Flow.Publisher<java.nio.ByteBuffer>
-
contentLength
public long contentLength()
- Specified by:
contentLengthin interfacejava.net.http.HttpRequest.BodyPublisher
-
-