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 |
|---|---|
void |
baseSetRenewable(java.lang.Boolean renewable)
Deprecated.
|
java.lang.Long |
getLeaseDuration() |
java.lang.String |
getLeaseId() |
java.lang.Boolean |
getRenewable() |
RestResponse |
getRestResponse() |
int |
getRetries() |
void |
setLeaseDuration(java.lang.Long leaseDuration)
Deprecated.
|
void |
setLeaseId(java.lang.String leaseId)
Deprecated.
|
void |
setRenewable(java.lang.Boolean renewable)
Deprecated.
|
void |
setRestResponse(RestResponse restResponse)
Deprecated.
|
void |
setRetries(int retries)
Deprecated.
|
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()
@Deprecated public void setRestResponse(RestResponse restResponse)
public int getRetries()
@Deprecated public void setRetries(int retries)
public java.lang.String getLeaseId()
@Deprecated public void setLeaseId(java.lang.String leaseId)
public java.lang.Boolean getRenewable()
@Deprecated public void setRenewable(java.lang.Boolean renewable)
@Deprecated public void baseSetRenewable(java.lang.Boolean renewable)
public java.lang.Long getLeaseDuration()
@Deprecated public void setLeaseDuration(java.lang.Long leaseDuration)