- java.lang.Object
-
- io.github.jopenlibs.vault.response.VaultResponse
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
AuthResponse
,LogicalResponse
,LookupResponse
,SealResponse
,WrapResponse
public class VaultResponse extends java.lang.Object implements java.io.Serializable
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 fromVaultResponse
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VaultResponse(RestResponse restResponse, int retries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RestResponse
getRestResponse()
int
getRetries()
-
-
-
Constructor Detail
-
VaultResponse
public VaultResponse(RestResponse restResponse, int retries)
- Parameters:
restResponse
- The raw HTTP response from Vault.retries
- The number of retry attempts that occurred during the API call (can be zero).
-
-
Method Detail
-
getRestResponse
public RestResponse getRestResponse()
-
getRetries
public int getRetries()
-
-