public class VaultEndpoint extends Object implements Serializable
A VaultEndpoint
defines the hostname, TCP port and the protocol scheme (HTTP or HTTPS).
Modifier and Type | Field and Description |
---|---|
static String |
API_VERSION |
Constructor and Description |
---|
VaultEndpoint() |
Modifier and Type | Method and Description |
---|---|
URI |
createUri(String path)
Build the Vault
URI based on the given path . |
String |
createUriString(String path)
Build the Vault URI string based on the given
path . |
String |
getHost() |
int |
getPort() |
String |
getScheme() |
void |
setHost(String host)
Sets the hostname.
|
void |
setPort(int port) |
void |
setScheme(String scheme) |
String |
toString() |
public static final String API_VERSION
public String getHost()
public void setHost(String host)
host
- must not be empty or null.public int getPort()
public void setPort(int port)
port
- must be a valid port in the range of 1-65535public String getScheme()
public void setScheme(String scheme)
scheme
- must be http or https.public URI createUri(String path)
URI
based on the given path
.path
- must not be empty or null.URI
.public String createUriString(String path)
path
.path
- must not be empty or null.Copyright © 2016 Pivotal Software, Inc.. All rights reserved.