public class ReactiveVaultClients extends Object
WebClient configured to the needs of accessing
Vault.| Constructor and Description |
|---|
ReactiveVaultClients() |
| Modifier and Type | Method and Description |
|---|---|
static org.springframework.web.reactive.function.client.WebClient |
createWebClient(ReactiveVaultEndpointProvider endpointProvider,
org.springframework.http.client.reactive.ClientHttpConnector connector)
|
static org.springframework.web.reactive.function.client.WebClient |
createWebClient(VaultEndpoint endpoint,
org.springframework.http.client.reactive.ClientHttpConnector connector)
|
static org.springframework.web.reactive.function.client.WebClient |
createWebClient(VaultEndpointProvider endpointProvider,
org.springframework.http.client.reactive.ClientHttpConnector connector)
|
static org.springframework.web.reactive.function.client.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 org.springframework.web.reactive.function.client.WebClient createWebClient(VaultEndpoint endpoint, org.springframework.http.client.reactive.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 org.springframework.web.reactive.function.client.WebClient createWebClient(VaultEndpointProvider endpointProvider, org.springframework.http.client.reactive.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 org.springframework.web.reactive.function.client.WebClient createWebClient(ReactiveVaultEndpointProvider endpointProvider, org.springframework.http.client.reactive.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 org.springframework.web.reactive.function.client.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_NAMESPACEpublic 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–2024 Pivotal Software, Inc.. All rights reserved.