Package org.springframework.vault.client
Interface ReactiveVaultClient.Builder
- Enclosing interface:
- ReactiveVaultClient
public static interface ReactiveVaultClient.Builder
A mutable builder for creating a
ReactiveVaultClient.-
Method Summary
Modifier and TypeMethodDescriptionapply(Consumer<ReactiveVaultClient.Builder> builderConsumer) Apply the givenConsumerto this builder instance.build()Build theReactiveVaultClientinstance.clientConnector(ClientHttpConnector connector) Configure theClientHttpConnectorto use.clone()Clone thisReactiveVaultClient.Builder.configureWebClient(Consumer<WebClient.Builder> WebClientBuilderConsumer) Provide a consumer to accessWebClient.Builderwith the possibility to override or augment its configuration.defaultHeader(String header, String... values) Global option to specify a header to be added to every request, if the request does not already contain such a header.default ReactiveVaultClient.BuilderdefaultNamespace(String namespace) Global option to specify a namespace header to be added to every request, if the request does not already contain such a header.endpoint(ReactiveVaultEndpointProvider endpointProvider) Set the Vault endpoint provider to use.endpoint(VaultEndpoint endpoint) Set the Vault endpoint to use.endpoint(VaultEndpointProvider endpointProvider) Set the Vault endpoint provider to use.uriBuilderFactory(UriBuilderFactory uriBuilderFactory) Provide a pre-configuredUriBuilderFactoryinstance.
-
Method Details
-
endpoint
Set the Vault endpoint to use.- Parameters:
endpoint- the vault endpoint to use.- Returns:
- this builder.
-
endpoint
Set the Vault endpoint provider to use.- Parameters:
endpointProvider- the vault endpoint provider to use.- Returns:
- this builder.
-
endpoint
Set the Vault endpoint provider to use.- Parameters:
endpointProvider- the vault endpoint provider to use.- Returns:
- this builder.
-
uriBuilderFactory
Provide a pre-configuredUriBuilderFactoryinstance. This is an alternative to, and effectively overrides the following shortcut properties:- Parameters:
uriBuilderFactory- the URI builder factory to use.- Returns:
- this builder.
- See Also:
-
defaultNamespace
Global option to specify a namespace header to be added to every request, if the request does not already contain such a header.- Parameters:
namespace- the namespace header value.- Returns:
- this builder.
-
defaultHeader
Global option to specify a header to be added to every request, if the request does not already contain such a header.- Parameters:
header- the header name.values- the header values.- Returns:
- this builder.
-
clientConnector
Configure theClientHttpConnectorto use. This is useful for plugging in and/or customizing options of the underlying HTTP client library (for example, SSL).By default this is set to
ReactorClientHttpConnector.- Parameters:
connector- the connector to use.
-
configureWebClient
ReactiveVaultClient.Builder configureWebClient(Consumer<WebClient.Builder> WebClientBuilderConsumer) Provide a consumer to accessWebClient.Builderwith the possibility to override or augment its configuration.- Parameters:
WebClientBuilderConsumer- the consumer.- Returns:
- this builder.
-
apply
Apply the givenConsumerto this builder instance.This can be useful for applying pre-packaged customizations.
- Parameters:
builderConsumer- the consumer to apply- Returns:
- this builder
-
clone
ReactiveVaultClient.Builder clone()Clone thisReactiveVaultClient.Builder. -
build
ReactiveVaultClient build()Build theReactiveVaultClientinstance.
-