Interface BodyAdapter.Hints

Enclosing interface:
BodyAdapter

public static interface BodyAdapter.Hints
A collection of hints that provide additional context to customize an adapter's encoding/decoding behavior. Typically, an adapter receives a Hints object that contains the MediaType of the intended format as advertised by the request or response. Additionally, an encoder receives a Hints objects containing the request(), and a decoder receives one that contains the responseInfo(). Some hints are optional, and adapters substitute with default values in the absence thereof (for instance, a JSON adapter may use UTF-8 in the absence of a MediaType containing a charset parameter). If a hint is required by the adapter, it throws an UnsupportedOperationException in the absence of such.