Constructor and Description |
---|
ReactiveVaultClients() |
Modifier and Type | Method and Description |
---|---|
static WebClient |
createWebClient(ReactiveVaultEndpointProvider endpointProvider,
ClientHttpConnector connector)
|
static WebClient |
createWebClient(VaultEndpoint endpoint,
ClientHttpConnector connector)
|
static WebClient |
createWebClient(VaultEndpointProvider endpointProvider,
ClientHttpConnector connector)
|
static ExchangeFilterFunction |
namespace(String namespace)
Create a
ExchangeFilterFunction that associates each request with a
X-Vault-Namespace header if the header is not present. |
static ReactiveVaultEndpointProvider |
wrap(VaultEndpointProvider endpointProvider)
Wrap a
VaultEndpointProvider into a ReactiveVaultEndpointProvider
to invoke VaultEndpointProvider.getVaultEndpoint() on a dedicated
scheduler . |
public static WebClient createWebClient(VaultEndpoint endpoint, ClientHttpConnector connector)
WebClient
configured with VaultEndpoint
and
ClientHttpConnector
. The client accepts relative URIs without a leading
slash that are expanded to use VaultEndpoint
.
Requires Jackson 2 for Object-to-JSON mapping.
endpoint
- must not be null.connector
- must not be null.WebClient
.public static WebClient createWebClient(VaultEndpointProvider endpointProvider, ClientHttpConnector connector)
WebClient
configured with VaultEndpoint
and
ClientHttpConnector
. The client accepts relative URIs without a leading
slash that are expanded to use VaultEndpoint
.
Requires Jackson 2 for Object-to-JSON mapping. VaultEndpointProvider
is
called on Schedulers.boundedElastic()
to ensure that I/O threads are never
blocked.
endpointProvider
- must not be null.connector
- must not be null.WebClient
.public static WebClient createWebClient(ReactiveVaultEndpointProvider endpointProvider, ClientHttpConnector connector)
WebClient
configured with VaultEndpoint
and
ClientHttpConnector
. The client accepts relative URIs without a leading
slash that are expanded to use VaultEndpoint
.
Requires Jackson 2 for Object-to-JSON mapping.
endpointProvider
- must not be null.connector
- must not be null.WebClient
.public static ExchangeFilterFunction namespace(String namespace)
ExchangeFilterFunction
that associates each request with a
X-Vault-Namespace
header if the header is not present.namespace
- the Vault namespace to use. Must not be null or empty.ExchangeFilterFunction
to register with WebClient
.VaultHttpHeaders.VAULT_NAMESPACE
public static ReactiveVaultEndpointProvider wrap(VaultEndpointProvider endpointProvider)
VaultEndpointProvider
into a ReactiveVaultEndpointProvider
to invoke VaultEndpointProvider.getVaultEndpoint()
on a dedicated
scheduler
.endpointProvider
- must not be null.ReactiveVaultEndpointProvider
wrapping
VaultEndpointProvider
.Copyright © 2016–2020 Pivotal Software, Inc.. All rights reserved.