Package org.projectnessie.client.http
Class HttpResponse
java.lang.Object
org.projectnessie.client.http.HttpResponse
Simple holder for http response object.
-
Constructor Summary
ConstructorsConstructorDescriptionHttpResponse(ResponseContext context, com.fasterxml.jackson.databind.ObjectMapper mapper) -
Method Summary
Modifier and TypeMethodDescription<V> VreadEntity(Class<V> clazz) Read the entity from the underlying HTTP response.
-
Constructor Details
-
HttpResponse
-
-
Method Details
-
readEntity
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 readNessieBadResponseException- if the entity is not JSON compatible
-
getRequestUri
-
getStatus
-