public class VaultResponse
extends java.lang.Object
VaultResponse
is a common base class for the response objects returned by
all API methods. It contains the bare minimum of information common to all Vault
responses (e.g. the raw HTTP response, the number of retry attempts if any). API methods
which return additional information will use more specialized subclasses inheriting
from VaultResponse
.
NOTE: It turns out that not all API methods will populate leaseId
,
renewable
, and leaseDuration
. In fact, many response types won't.
So the next major release will implement those fields directly in the subclasses where they're
used.
Constructor and Description |
---|
VaultResponse(RestResponse restResponse,
int retries) |
Modifier and Type | Method and Description |
---|---|
RestResponse |
getRestResponse() |
int |
getRetries() |
public VaultResponse(RestResponse restResponse, int retries)
restResponse
- The raw HTTP response from Vault.retries
- The number of retry attempts that occurred during the API call (can be zero).public RestResponse getRestResponse()
public int getRetries()