Class AdapterCodec

java.lang.Object
com.github.mizosoft.methanol.AdapterCodec

public final class AdapterCodec extends Object
A group of adapters (encoders & decoders), typically targeting different mapping schemes, that facilitates creating corresponding HttpRequest.BodyPublisher, HttpResponse.BodyHandler and HttpResponse.BodySubscriber implementations. The correct adapter is selected based on the object type and caller's BodyAdapter.Hints, typically containing the MediaType of the desired mapping format.