Package com.atlan.net
Class AtlanResponse
java.lang.Object
com.atlan.net.AtlanResponse
A response from Atlan's API, with body represented as a String.
-
Constructor Summary
ConstructorDescriptionAtlanResponse
(int code, HttpHeaders headers, String body) Initializes a new instance of theAtlanResponse
class. -
Method Summary
-
Constructor Details
-
AtlanResponse
Initializes a new instance of theAtlanResponse
class.- Parameters:
code
- the HTTP status code of the responseheaders
- the HTTP headers of the responsebody
- the body of the response- Throws:
NullPointerException
- ifheaders
orbody
isnull
-
-
Method Details
-
code
public final int code() -
headers
-
body
-
date
Gets the date of the request, as returned by Atlan.- Returns:
- the date of the request, as returned by Atlan
-
metrics
The metrics of the request / response round-trip, if enabled. Note: if retries are also enabled, this will contain ONLY the metrics for the final retry and no others. -
numRetries
public int numRetries()Number of times the request was retried. Used for internal tests only.
-