java.lang.Object
com.github.mizosoft.methanol.adapter.ForwardingBodyAdapter
com.github.mizosoft.methanol.adapter.ForwardingEncoder
- All Implemented Interfaces:
BodyAdapter
,BodyAdapter.Encoder
An
BodyAdapter.Encoder
that forwards calls to another.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.github.mizosoft.methanol.BodyAdapter
BodyAdapter.Decoder, BodyAdapter.Encoder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected BodyAdapter.Encoder
delegate()
Returns the adapter calls are being forwarded to.Returns aBodyPublisher
that encodes the given object into a request body using the format specified by the given media type.Methods inherited from class com.github.mizosoft.methanol.adapter.ForwardingBodyAdapter
isCompatibleWith, supportsType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.github.mizosoft.methanol.BodyAdapter
isCompatibleWith, supportsType
-
Constructor Details
-
ForwardingEncoder
-
-
Method Details
-
delegate
Description copied from class:ForwardingBodyAdapter
Returns the adapter calls are being forwarded to.- Specified by:
delegate
in classForwardingBodyAdapter
-
toBody
Description copied from interface:BodyAdapter.Encoder
Returns aBodyPublisher
that encodes the given object into a request body using the format specified by the given media type. IfmediaType
isnull
, the encoder's default format parameters (e.g. charset) are be used.- Specified by:
toBody
in interfaceBodyAdapter.Encoder
-