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 com.github.mizosoft.methanol.BodyAdapter
BodyAdapter.Decoder, BodyAdapter.Encoder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract BodyAdapter
delegate()
Returns the adapter calls are being forwarded to.boolean
isCompatibleWith
(MediaType mediaType) Returnstrue
if the format this adapter uses iscompatible
with the given media type.boolean
supportsType
(TypeRef<?> type) Returnstrue
if this adapter supports the given type.
-
Constructor Details
-
ForwardingBodyAdapter
protected ForwardingBodyAdapter()
-
-
Method Details
-
delegate
Returns the adapter calls are being forwarded to. -
isCompatibleWith
Description copied from interface:BodyAdapter
Returnstrue
if the format this adapter uses iscompatible
with the given media type.- Specified by:
isCompatibleWith
in interfaceBodyAdapter
-
supportsType
Description copied from interface:BodyAdapter
Returnstrue
if this adapter supports the given type.- Specified by:
supportsType
in interfaceBodyAdapter
-