Class ForwardingBodyAdapter
java.lang.Object
com.github.mizosoft.methanol.adapter.ForwardingBodyAdapter
- All Implemented Interfaces:
BodyAdapter
- Direct Known Subclasses:
ForwardingDecoder, ForwardingEncoder
A
BodyAdapter that forwards calls to another.-
Nested Class Summary
Nested classes/interfaces inherited from interface BodyAdapter
BodyAdapter.Decoder, BodyAdapter.Encoder, BodyAdapter.Hints -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract BodyAdapterdelegate()Returns the adapter calls are being forwarded to.booleanisCompatibleWith(MediaType mediaType) Returnstrueif the format this adapter uses iscompatiblewith the given media type.booleansupportsType(TypeRef<?> type) Returnstrueif this adapter supports the given type.toString()
-
Constructor Details
-
ForwardingBodyAdapter
protected ForwardingBodyAdapter()
-
-
Method Details
-
delegate
Returns the adapter calls are being forwarded to. -
isCompatibleWith
Description copied from interface:BodyAdapterReturnstrueif the format this adapter uses iscompatiblewith the given media type.- Specified by:
isCompatibleWithin interfaceBodyAdapter
-
supportsType
Description copied from interface:BodyAdapterReturnstrueif this adapter supports the given type.- Specified by:
supportsTypein interfaceBodyAdapter
-
toString
-