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,java.net.http.HttpRequest.BodyPublisher,java.util.concurrent.Flow.Publisher<java.nio.ByteBuffer>
public final class MimeBodyPublisherAdapter extends ForwardingBodyPublisher implements MimeBodyPublisher
-
-
Constructor Summary
Constructors Constructor Description MimeBodyPublisherAdapter(java.net.http.HttpRequest.BodyPublisher upstream, MediaType mediaType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MediaTypemediaType()Returns the body's media type.-
Methods inherited from class com.github.mizosoft.methanol.internal.extensions.ForwardingBodyPublisher
contentLength, delegate, subscribe, toString
-
-
-
-
Constructor Detail
-
MimeBodyPublisherAdapter
public MimeBodyPublisherAdapter(java.net.http.HttpRequest.BodyPublisher upstream, MediaType mediaType)
-
-
Method Detail
-
mediaType
public MediaType mediaType()
Description copied from interface:MimeBodyPublisherReturns the body's media type.- Specified by:
mediaTypein interfaceMimeBodyPublisher
-
-