Module methanol
Class MimeBodyPublisherAdapter
java.lang.Object
com.github.mizosoft.methanol.internal.extensions.ForwardingBodyPublisher
com.github.mizosoft.methanol.internal.extensions.MimeBodyPublisherAdapter
- All Implemented Interfaces:
MimeBodyPublisher
,HttpRequest.BodyPublisher
,Flow.Publisher<ByteBuffer>
public final class MimeBodyPublisherAdapter
extends ForwardingBodyPublisher
implements MimeBodyPublisher
-
Constructor Summary
ConstructorDescriptionMimeBodyPublisherAdapter
(HttpRequest.BodyPublisher upstream, MediaType mediaType) -
Method Summary
Methods inherited from class com.github.mizosoft.methanol.internal.extensions.ForwardingBodyPublisher
contentLength, subscribe, upstream
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.concurrent.Flow.Publisher
subscribe
Methods inherited from interface java.net.http.HttpRequest.BodyPublisher
contentLength
-
Constructor Details
-
MimeBodyPublisherAdapter
-
-
Method Details
-
mediaType
Description copied from interface:MimeBodyPublisher
Returns the body's media type.- Specified by:
mediaType
in interfaceMimeBodyPublisher
-