ResponseBase<H,T> Class

Definition

The response of a REST request.

public class ResponseBase<H,T> implements Response<T>

Type Parameters

H
T
Inheritance
java.lang.Object
ResponseBase<H,T>
Implements

Inherited Members

java.lang.Object.clone() java.lang.Object.equals(java.lang.Object) java.lang.Object.finalize() java.lang.Object.getClass() java.lang.Object.hashCode() java.lang.Object.notify() java.lang.Object.notifyAll() java.lang.Object.toString() java.lang.Object.wait() java.lang.Object.wait(long) java.lang.Object.wait(long,int)

Constructors

ResponseBase(HttpRequest request, int statusCode, HttpHeaders headers, T value, H deserializedHeaders)

Creates a ResponseBase<H,T>.

Methods

getDeserializedHeaders()

Get the headers from the HTTP response, transformed into the header type, H.

getHeaders()

Gets the headers from the HTTP response.

getRequest()

Gets The request which resulted in this ResponseBase<H,T>.

getStatusCode()

Gets the HTTP response status code.

getValue()

Gets the deserialized value of the HTTP response.

Applies to