public class HTTPResponse
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
HTTPContentType |
getContentType()
Get all parts of the HTTP header field "Content-Type".
|
HTTPPerformanceData |
getHttpPerformanceData()
Get the performance data of the successful executed HTTP call.
|
HTTPRequest |
getHttpRequest()
Get the corresponding HTTP request.
|
HTTPResponseContent |
getHttpResponseContent()
Get the received HTTP response content.
|
HTTPResponseHeader |
getHttpResponseHeader()
Get the received HTTP response header.
|
int |
getHttpStatusCode()
Get the received HTTP status code.
|
java.lang.String |
getReceivedHttpStatusText()
Get the received HTTP status text.
|
java.lang.String |
getRedirectUrl()
Get the absolute URL of an HTTP redirect.
|
long |
getTotalResponseSize()
Get the total received response size.
|
boolean |
isRedirect()
Get if this HTTP response is an HTTP redirect.
|
JsonObject |
toJsonObject()
Get a JSON object of this instance.
|
public HTTPRequest getHttpRequest()
public HTTPResponseHeader getHttpResponseHeader()
public HTTPResponseContent getHttpResponseContent()
public long getTotalResponseSize()
public int getHttpStatusCode()
public java.lang.String getReceivedHttpStatusText()
public HTTPContentType getContentType()
public HTTPPerformanceData getHttpPerformanceData()
public boolean isRedirect()
getRedirectUrl()public java.lang.String getRedirectUrl()
throws java.net.URISyntaxException
java.net.URISyntaxException - if the base URL of the HTTP request is invalidisRedirect()public JsonObject toJsonObject() throws HTTPContentTooLargeException, HTTPContentTruncatedException, java.io.IOException
HTTPContentTooLargeException - if the received content is larger than 2^31-1 bytesHTTPContentTruncatedException - if the stored HTTP response content was truncated (but was still fully read)java.io.IOException - if the content was compressed and the decompression fails