Class HttpResponse

java.lang.Object
org.projectnessie.client.http.HttpResponse

public class HttpResponse extends Object
Simple holder for http response object.
  • Constructor Details

    • HttpResponse

      public HttpResponse(ResponseContext context, com.fasterxml.jackson.databind.ObjectMapper mapper)
  • Method Details

    • readEntity

      public <V> V readEntity(Class<V> clazz)
      Read the entity from the underlying HTTP response.
      Returns:
      the entity, or null if the response has no content
      Throws:
      HttpClientException - if the entity cannot be read
      NessieBadResponseException - if the entity is not JSON compatible
    • getRequestUri

      public URI getRequestUri()
    • getStatus

      public Status getStatus()