Package org.projectnessie.client
Class NessieClient.Builder
- java.lang.Object
-
- org.projectnessie.client.http.HttpClientBuilder
-
- org.projectnessie.client.NessieClient.Builder
-
- All Implemented Interfaces:
NessieClientBuilder<HttpClientBuilder>
- Enclosing interface:
- NessieClient
@Deprecated public static class NessieClient.Builder extends HttpClientBuilder
Deprecated.this inner class will be removed, replace withNessieClientBuilder.Builder to configure a newNessieClient. Currently, theNessieClient.Builderis only capable of building aNessieClientfor HTTP, but that may change.
-
-
Constructor Summary
Constructors Constructor Description Builder()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description NessieClientbuild()Deprecated.NessieClient.BuilderfromConfig(Function<String,String> configuration)Deprecated.NessieClient.BuilderfromSystemProperties()Deprecated.NessieClient.BuilderwithAuthType(NessieClient.AuthType authType)Deprecated.NessieClient.BuilderwithConnectionTimeout(int connectionTimeoutMillis)Deprecated.NessieClient.BuilderwithPassword(String password)Deprecated.NessieClient.BuilderwithReadTimeout(int readTimeoutMillis)Deprecated.NessieClient.BuilderwithTracing(boolean tracing)Deprecated.NessieClient.BuilderwithUri(String uri)Deprecated.NessieClient.BuilderwithUri(URI uri)Deprecated.NessieClient.BuilderwithUsername(String username)Deprecated.-
Methods inherited from class org.projectnessie.client.http.HttpClientBuilder
builder, withAuthentication, withAuthenticationFromConfig
-
-
-
-
Method Detail
-
fromSystemProperties
@Deprecated public NessieClient.Builder fromSystemProperties()
Deprecated.Description copied from class:HttpClientBuilderSame semantics asHttpClientBuilder.fromConfig(Function), uses the system properties.- Specified by:
fromSystemPropertiesin interfaceNessieClientBuilder<HttpClientBuilder>- Overrides:
fromSystemPropertiesin classHttpClientBuilder- Returns:
this- See Also:
HttpClientBuilder.fromConfig(Function)
-
fromConfig
@Deprecated public NessieClient.Builder fromConfig(Function<String,String> configuration)
Deprecated.Description copied from class:HttpClientBuilderConfigure this HttpClientBuilder instance using a configuration object and standard Nessie configuration keys defined by the constants defined inNessieConfigConstants. Non-nullvalues returned by theconfiguration-function will override previously configured values.- Specified by:
fromConfigin interfaceNessieClientBuilder<HttpClientBuilder>- Overrides:
fromConfigin classHttpClientBuilder- Parameters:
configuration- The function that returns a configuration value for a configuration key.- Returns:
this- See Also:
HttpClientBuilder.fromSystemProperties()
-
withAuthType
@Deprecated public NessieClient.Builder withAuthType(NessieClient.AuthType authType)
Deprecated.Set the authentication type. Default isNessieClient.AuthType.NONE.- Parameters:
authType- new auth-type- Returns:
this
-
withUri
@Deprecated public NessieClient.Builder withUri(URI uri)
Deprecated.Description copied from class:HttpClientBuilderSet the Nessie server URI. A server URI must be configured.- Specified by:
withUriin interfaceNessieClientBuilder<HttpClientBuilder>- Overrides:
withUriin classHttpClientBuilder- Parameters:
uri- server URI- Returns:
this
-
withUri
@Deprecated public NessieClient.Builder withUri(String uri)
Deprecated.Description copied from class:HttpClientBuilderConvenience method forHttpClientBuilder.withUri(URI)taking a string.- Specified by:
withUriin interfaceNessieClientBuilder<HttpClientBuilder>- Overrides:
withUriin classHttpClientBuilder- Parameters:
uri- server URI- Returns:
this
-
withUsername
@Deprecated public NessieClient.Builder withUsername(String username)
Deprecated.Set the username forNessieClient.AuthType.BASICauthentication.- Parameters:
username- username- Returns:
this
-
withPassword
@Deprecated public NessieClient.Builder withPassword(String password)
Deprecated.Set the password forNessieClient.AuthType.BASICauthentication.- Parameters:
password- password- Returns:
this
-
withTracing
@Deprecated public NessieClient.Builder withTracing(boolean tracing)
Deprecated.Description copied from class:HttpClientBuilderWhether to enable adding the HTTP headers of an active OpenTracing span to all Nessie requests. If enabled, the OpenTracing dependencies must be present at runtime.- Overrides:
withTracingin classHttpClientBuilder- Parameters:
tracing-trueto enable passing HTTP headers for active tracing spans.- Returns:
this
-
withReadTimeout
@Deprecated public NessieClient.Builder withReadTimeout(int readTimeoutMillis)
Deprecated.Description copied from class:HttpClientBuilderSet the read timeout in milliseconds for this client. Timeout will throwHttpClientReadTimeoutException.- Overrides:
withReadTimeoutin classHttpClientBuilder- Parameters:
readTimeoutMillis- number of seconds to wait for a response from server.- Returns:
this
-
withConnectionTimeout
@Deprecated public NessieClient.Builder withConnectionTimeout(int connectionTimeoutMillis)
Deprecated.Description copied from class:HttpClientBuilderSet the connection timeout in milliseconds for this client. Timeout will throwHttpClientException.- Overrides:
withConnectionTimeoutin classHttpClientBuilder- Parameters:
connectionTimeoutMillis- number of seconds to wait to connect to the server.- Returns:
this
-
build
@Deprecated public NessieClient build()
Deprecated.Description copied from class:HttpClientBuilderBuilds a newNessieHttpClient.- Specified by:
buildin interfaceNessieClientBuilder<HttpClientBuilder>- Overrides:
buildin classHttpClientBuilder- Returns:
- A new
NessieHttpClient.
-
-