Class 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 from VaultResponse.

    See Also:
    Serialized Form
    • 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

      • getRetries

        public int getRetries()