public class VaultResponseEntity<T> extends Object
VaultAccessor
. Consists of the body,
status code the location and a message. The body
is empty for all
non-successful results. This class is immutable.Modifier | Constructor and Description |
---|---|
protected |
VaultResponseEntity(T body,
HttpStatus statusCode,
URI uri,
String message) |
Modifier and Type | Method and Description |
---|---|
T |
getBody() |
String |
getMessage() |
HttpStatus |
getStatusCode() |
URI |
getUri() |
boolean |
hasBody() |
boolean |
isSuccessful() |
protected VaultResponseEntity(T body, HttpStatus statusCode, URI uri, String message)
public boolean isSuccessful()
public boolean hasBody()
public T getBody()
public HttpStatus getStatusCode()
HttpStatus
of this entity.public String getMessage()
Copyright © 2016–2017 Pivotal Software, Inc.. All rights reserved.