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 ForwardingBodyPublisher
contentLength, delegate, subscribe, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Flow.Publisher
subscribeMethods inherited from interface HttpRequest.BodyPublisher
contentLength
-
Constructor Details
-
MimeBodyPublisherAdapter
-
-
Method Details
-
mediaType
Description copied from interface:MimeBodyPublisherReturns the body's media type.- Specified by:
mediaTypein interfaceMimeBodyPublisher
-