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.
|
long |
getTotalResponseSize()
Get the total received response size.
|
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 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