Package org.projectnessie.client.http
Class HttpClientBuilder
- All Implemented Interfaces:
NessieHttpClientBuilder,NessieClientBuilder
Deprecated.
This is the deprecated builder class to create a
NessieApi instance for
HTTP/REST.
Note that this class does not build an HTTP client but a Nessie API client.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.projectnessie.client.NessieClientBuilder
NessieClientBuilder.AbstractNessieClientBuilderNested classes/interfaces inherited from interface org.projectnessie.client.http.NessieHttpClientBuilder
NessieHttpClientBuilder.AbstractNessieHttpClientBuilder -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<API extends NessieApi>
APIDeprecated.Builds a newNessieApi.static HttpClientBuilderbuilder()Deprecated.fromConfig(Function<String, String> configuration) Deprecated.Configure this HttpClientBuilder instance using a configuration object and standard Nessie configuration keys defined by the constants defined inNessieConfigConstants.Deprecated.Same semantics asNessieClientBuilder.fromConfig(Function), uses the system properties.withApiCompatibilityCheck(boolean enable) Deprecated.withAuthentication(NessieAuthentication authentication) Deprecated.Sets theNessieAuthenticationinstance to be used.withAuthenticationFromConfig(Function<String, String> configuration) Deprecated.Configure only authentication in this HttpClientBuilder instance using a configuration object and standard Nessie configuration keys defined by the constants defined inNessieConfigConstants.withConnectionTimeout(int connectionTimeoutMillis) Deprecated.Set the connection timeout in milliseconds for this client.withDisableCompression(boolean disableCompression) Deprecated.Set whether the compression shall be disabled or not.withFollowRedirects(String redirects) Deprecated.Whether HTTP redirects are followed, default is to not follow redirects.withForceUrlConnectionClient(boolean forceUrlConnectionClient) Deprecated.Whether to force using the "old"URLConnectionbased client when running on Java 11 and newer with Java's new HTTP client.withHttp2Upgrade(boolean http2Upgrade) Deprecated.Whether to allow HTTP/2 upgrade, default isfalse.withReadTimeout(int readTimeoutMillis) Deprecated.Set the read timeout in milliseconds for this client.withResponseFactory(HttpResponseFactory responseFactory) Deprecated.withSSLContext(SSLContext sslContext) Deprecated.Set the SSL context for this client.withSSLParameters(SSLParameters sslParameters) Deprecated.Optionally configure specificSSLParameters.withTracing(boolean tracing) Deprecated.Whether to enable adding the HTTP headers of an active OpenTracing span to all Nessie requests.Deprecated.Convenience method forNessieClientBuilder.withUri(URI)taking a string.Deprecated.Set the Nessie server URI.Methods inherited from class org.projectnessie.client.http.NessieHttpClientBuilderImpl
name, priorityMethods inherited from class org.projectnessie.client.NessieClientBuilder.AbstractNessieClientBuilder
asInstanceOfMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.projectnessie.client.NessieClientBuilder
asInstanceOf
-
Field Details
-
ENABLE_API_COMPATIBILITY_CHECK_SYSTEM_PROPERTY
Deprecated.- See Also:
-
-
Constructor Details
-
HttpClientBuilder
public HttpClientBuilder()Deprecated.
-
-
Method Details
-
builder
Deprecated.Migrate calling code to useNessieClientBuilder.createClientBuilderFromSystemSettings(). -
withUri
Deprecated.Description copied from interface:NessieClientBuilderConvenience method forNessieClientBuilder.withUri(URI)taking a string.- Specified by:
withUriin interfaceNessieClientBuilder- Overrides:
withUriin classNessieClientBuilder.AbstractNessieClientBuilder- Parameters:
uri- server URI- Returns:
this
-
fromSystemProperties
Deprecated.Description copied from interface:NessieClientBuilderSame semantics asNessieClientBuilder.fromConfig(Function), uses the system properties.- Specified by:
fromSystemPropertiesin interfaceNessieClientBuilder- Overrides:
fromSystemPropertiesin classNessieClientBuilder.AbstractNessieClientBuilder- Returns:
this- See Also:
-
fromConfig
Deprecated.Description copied from class:NessieHttpClientBuilder.AbstractNessieHttpClientBuilderConfigure 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- Overrides:
fromConfigin classNessieHttpClientBuilder.AbstractNessieHttpClientBuilder- Parameters:
configuration- The function that returns a configuration value for a configuration key.- Returns:
this- See Also:
-
withAuthenticationFromConfig
Deprecated.Description copied from interface:NessieClientBuilderConfigure only authentication in this HttpClientBuilder instance using a configuration object and standard Nessie configuration keys defined by the constants defined inNessieConfigConstants.- Specified by:
withAuthenticationFromConfigin interfaceNessieClientBuilder- Overrides:
withAuthenticationFromConfigin classNessieClientBuilder.AbstractNessieClientBuilder- Parameters:
configuration- The function that returns a configuration value for a configuration key.- Returns:
this- See Also:
-
withUri
Deprecated.Description copied from class:NessieHttpClientBuilderImplSet the Nessie server URI. A server URI must be configured.- Specified by:
withUriin interfaceNessieClientBuilder- Overrides:
withUriin classNessieHttpClientBuilderImpl- Parameters:
uri- server URI- Returns:
this
-
withAuthentication
Deprecated.Description copied from interface:NessieClientBuilderSets theNessieAuthenticationinstance to be used.- Specified by:
withAuthenticationin interfaceNessieClientBuilder- Overrides:
withAuthenticationin classNessieHttpClientBuilderImpl- Parameters:
authentication- authentication for this client- Returns:
this
-
withTracing
Deprecated.Description copied from class:NessieHttpClientBuilderImplWhether 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.- Specified by:
withTracingin interfaceNessieClientBuilder- Overrides:
withTracingin classNessieHttpClientBuilderImpl- Parameters:
tracing-trueto enable passing HTTP headers for active tracing spans.- Returns:
this
-
withReadTimeout
Deprecated.Description copied from class:NessieHttpClientBuilderImplSet the read timeout in milliseconds for this client. Timeout will throwHttpClientReadTimeoutException.- Specified by:
withReadTimeoutin interfaceNessieClientBuilder- Overrides:
withReadTimeoutin classNessieHttpClientBuilderImpl- Parameters:
readTimeoutMillis- number of seconds to wait for a response from server.- Returns:
this
-
withConnectionTimeout
Deprecated.Description copied from class:NessieHttpClientBuilderImplSet the connection timeout in milliseconds for this client. Timeout will throwHttpClientException.- Specified by:
withConnectionTimeoutin interfaceNessieClientBuilder- Overrides:
withConnectionTimeoutin classNessieHttpClientBuilderImpl- Parameters:
connectionTimeoutMillis- number of seconds to wait to connect to the server.- Returns:
this
-
withDisableCompression
Deprecated.Description copied from class:NessieHttpClientBuilderImplSet whether the compression shall be disabled or not.- Specified by:
withDisableCompressionin interfaceNessieClientBuilder- Overrides:
withDisableCompressionin classNessieHttpClientBuilderImpl- Parameters:
disableCompression- whether the compression shall be disabled or not.- Returns:
this
-
withSSLContext
Deprecated.Description copied from class:NessieHttpClientBuilderImplSet the SSL context for this client.- Specified by:
withSSLContextin interfaceNessieClientBuilder- Overrides:
withSSLContextin classNessieHttpClientBuilderImpl- Parameters:
sslContext- the SSL context to use- Returns:
this
-
withSSLParameters
Deprecated.Description copied from interface:NessieClientBuilderOptionally configure specificSSLParameters.- Specified by:
withSSLParametersin interfaceNessieClientBuilder- Overrides:
withSSLParametersin classNessieHttpClientBuilderImpl
-
withHttp2Upgrade
Deprecated.Description copied from interface:NessieHttpClientBuilderWhether to allow HTTP/2 upgrade, default isfalse.Only valid on Java 11 and newer with Java's new HTTP client.
- Specified by:
withHttp2Upgradein interfaceNessieHttpClientBuilder- Overrides:
withHttp2Upgradein classNessieHttpClientBuilderImpl
-
withFollowRedirects
Deprecated.Description copied from interface:NessieHttpClientBuilderWhether HTTP redirects are followed, default is to not follow redirects.Valid values are the enum names of
HttpClient.Redirect.Only valid on Java 11 and newer with Java's new HTTP client.
- Specified by:
withFollowRedirectsin interfaceNessieHttpClientBuilder- Overrides:
withFollowRedirectsin classNessieHttpClientBuilderImpl
-
withForceUrlConnectionClient
Deprecated.Description copied from interface:NessieHttpClientBuilderWhether to force using the "old"URLConnectionbased client when running on Java 11 and newer with Java's new HTTP client.- Specified by:
withForceUrlConnectionClientin interfaceNessieHttpClientBuilder- Overrides:
withForceUrlConnectionClientin classNessieHttpClientBuilderImpl
-
withApiCompatibilityCheck
Deprecated.- Specified by:
withApiCompatibilityCheckin interfaceNessieClientBuilder- Overrides:
withApiCompatibilityCheckin classNessieHttpClientBuilderImpl
-
withResponseFactory
Deprecated.- Specified by:
withResponseFactoryin interfaceNessieHttpClientBuilder- Overrides:
withResponseFactoryin classNessieHttpClientBuilderImpl
-
build
Deprecated.Description copied from interface:NessieClientBuilderBuilds a newNessieApi.- Specified by:
buildin interfaceNessieClientBuilder- Overrides:
buildin classNessieHttpClientBuilderImpl- Returns:
- A new
NessieApi.
-
NessieClientBuilder.createClientBuilder(String, String)