Package com.github.mizosoft.methanol.adapter
package com.github.mizosoft.methanol.adapter
-
ClassDescriptionAn abstract
BodyAdapterthat implementsBodyAdapter.isCompatibleWith(MediaType)by allowing subclasses to specify a set ofMediaTypesthe adapter is compatible with.This interface abstracts the more-capableAbstractBodyAdapter.BaseDecoder.toObject(TypeRef, Hints)method and adds a default implementation forAbstractBodyAdapter.BaseDecoder.toObject(TypeRef, MediaType)that forwards to the former.This interface abstracts the more-capableAbstractBodyAdapter.BaseEncoder.toBody(Object, TypeRef, Hints)method and adds a default implementation forAbstractBodyAdapter.BaseEncoder.toBody(Object, MediaType)that forwards to the former.ABodyAdapterthat forwards calls to another.ABodyAdapter.Decoderthat forwards calls to another.AnBodyAdapter.Encoderthat forwards calls to another.