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.| Modifier and Type | Field and Description |
|---|---|
protected RestResponse |
restResponse |
protected int |
retries |
| Constructor and Description |
|---|
VaultResponse(RestResponse restResponse,
int retries) |
| Modifier and Type | Method and Description |
|---|---|
RestResponse |
getRestResponse() |
int |
getRetries() |
void |
setRestResponse(RestResponse restResponse) |
void |
setRetries(int retries) |
protected RestResponse restResponse
protected int retries
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 void setRestResponse(RestResponse restResponse)
public int getRetries()
public void setRetries(int retries)