Interface Deserializer<T>


public interface Deserializer<T>
Reads objects from a response.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the content types this deserializer accepts, if any.
    Deserializes the response body into a useful type.
  • Method Details

    • deserialize

      T deserialize(Response response)
      Deserializes the response body into a useful type. Closes the Response.body() inputStream unless the return type requires an InputStream to be returned in a readable state.
    • accepts

      Optional<String> accepts()
      Returns the content types this deserializer accepts, if any. Values are structured for the
      Accept
      header based on rfc 7231 section 5.3.2.