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
ConstructorsConstructorDescriptionMimeBodyPublisherAdapter(HttpRequest.BodyPublisher upstream, MediaType mediaType) -
Method Summary
Methods inherited from class com.github.mizosoft.methanol.internal.extensions.ForwardingBodyPublisher
contentLength, delegate, subscribe, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.concurrent.Flow.Publisher
subscribeMethods inherited from interface java.net.http.HttpRequest.BodyPublisher
contentLength
-
Constructor Details
-
MimeBodyPublisherAdapter
-
-
Method Details
-
mediaType
Description copied from interface:MimeBodyPublisherReturns the body's media type.- Specified by:
mediaTypein interfaceMimeBodyPublisher
-