public abstract class VaultAccessor extends Object
RestTemplate
to operate on.
Not intended to be used directly. See VaultClient
.
Modifier and Type | Class and Description |
---|---|
static interface |
VaultAccessor.RestTemplateCallback<T>
A callback for executing arbitrary operations on the
RestTemplate . |
Modifier | Constructor and Description |
---|---|
protected |
VaultAccessor(RestTemplate restTemplate)
Create a
VaultAccessor with a RestTemplate . |
Modifier and Type | Method and Description |
---|---|
protected <T> T |
doWithRestTemplate(URI uri,
VaultAccessor.RestTemplateCallback<T> callback)
Execute a
VaultAccessor.RestTemplateCallback in the scope of the RestTemplate . |
<T,S extends T> |
exchange(URI uri,
HttpMethod httpMethod,
HttpEntity<?> httpEntity,
Class<T> returnType) |
<T,S extends T> |
exchange(URI uri,
HttpMethod httpMethod,
HttpEntity<?> httpEntity,
ParameterizedTypeReference<T> returnType) |
RestTemplate |
getRestTemplate() |
protected VaultAccessor(RestTemplate restTemplate)
VaultAccessor
with a RestTemplate
.restTemplate
- must not be null.protected <T> T doWithRestTemplate(URI uri, VaultAccessor.RestTemplateCallback<T> callback)
VaultAccessor.RestTemplateCallback
in the scope of the RestTemplate
.T
- return typeuri
- must not be null.callback
- must not be null.VaultAccessor.RestTemplateCallback
return value.public <T,S extends T> VaultResponseEntity<S> exchange(URI uri, HttpMethod httpMethod, HttpEntity<?> httpEntity, Class<T> returnType)
public <T,S extends T> VaultResponseEntity<S> exchange(URI uri, HttpMethod httpMethod, HttpEntity<?> httpEntity, ParameterizedTypeReference<T> returnType)
public RestTemplate getRestTemplate()
RestTemplate
.Copyright © 2016 Pivotal Software, Inc.. All rights reserved.