Package io.helidon.integrations.vault
Class VaultOptionalResponse<R>
java.lang.Object
io.helidon.integrations.common.rest.ApiJsonParser
io.helidon.integrations.common.rest.ApiResponse
io.helidon.integrations.common.rest.ApiOptionalResponse<R>
io.helidon.integrations.vault.VaultOptionalResponse<R>
- Type Parameters:
R- type of the response - a subclass of this class
Response for Vault operations that may contain entity.
The entity is present for successful requests (returning
Status.OK_200;
entity is not present if the response was Status.NOT_FOUND_404).-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFluent API builder forVaultOptionalResponse.static classBase builder class for subclasses ofVaultOptionalResponse. -
Method Summary
Modifier and TypeMethodDescriptionerrors()List of errors (if any) as returned by Vault.static <R,X> VaultOptionalResponse.Builder <X, R> A builder to create an optional response.Methods inherited from class io.helidon.integrations.common.rest.ApiOptionalResponse
apiResponseBuilder, entity, mapMethods inherited from class io.helidon.integrations.common.rest.ApiResponse
headers, requestId, statusMethods inherited from class io.helidon.integrations.common.rest.ApiJsonParser
isPresent, isPresent, stringValue, stringValue, toBoolean, toBoolean, toBytesBase64, toBytesBase64, toDouble, toDouble, toInstant, toInstant, toInt, toInt, toList, toList, toLong, toLong, toMap, toMap, toObject, toObject, toString, toString
-
Method Details
-
vaultResponseBuilder
A builder to create an optional response. Method name is notbuilderto allow subclasses to define their own builder methods.- Type Parameters:
R- type of object used to represent the entityX- expected entity (such asJsonObject- Returns:
- a new builder
-
errors
List of errors (if any) as returned by Vault. This list may contain errors when we get aStatus.NOT_FOUND_404.- Returns:
- list of errors from Vault
-