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 TypeMethodDescriptionaddRequestFilter(RequestFilter filter) Deprecated.Add a request filter to the client.addResponseFilter(ResponseFilter filter) Deprecated.Add a response filter to the client.<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- Specified by:
withUriin interfaceNessieHttpClientBuilder- Overrides:
withUriin classNessieHttpClientBuilderImpl- 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- Specified by:
fromConfigin interfaceNessieHttpClientBuilder- Overrides:
fromConfigin classNessieHttpClientBuilderImpl- 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- Specified by:
withAuthenticationFromConfigin interfaceNessieHttpClientBuilder- Overrides:
withAuthenticationFromConfigin classNessieHttpClientBuilderImpl- 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- Specified by:
withUriin interfaceNessieHttpClientBuilder- Overrides:
withUriin classNessieHttpClientBuilderImpl- Parameters:
uri- server URI- Returns:
this
-
withAuthentication
Deprecated.Description copied from interface:NessieClientBuilderSets theNessieAuthenticationinstance to be used.- Specified by:
withAuthenticationin interfaceNessieClientBuilder- Specified by:
withAuthenticationin interfaceNessieHttpClientBuilder- 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- Specified by:
withTracingin interfaceNessieHttpClientBuilder- 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- Specified by:
withReadTimeoutin interfaceNessieHttpClientBuilder- 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- Specified by:
withConnectionTimeoutin interfaceNessieHttpClientBuilder- 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- Specified by:
withDisableCompressionin interfaceNessieHttpClientBuilder- 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- Specified by:
withSSLContextin interfaceNessieHttpClientBuilder- 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- Specified by:
withSSLParametersin interfaceNessieHttpClientBuilder- 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- Specified by:
withApiCompatibilityCheckin interfaceNessieHttpClientBuilder- Overrides:
withApiCompatibilityCheckin classNessieHttpClientBuilderImpl
-
withResponseFactory
Deprecated.- Specified by:
withResponseFactoryin interfaceNessieHttpClientBuilder- Overrides:
withResponseFactoryin classNessieHttpClientBuilderImpl
-
addRequestFilter
Deprecated.Description copied from interface:NessieHttpClientBuilderAdd a request filter to the client. Enables low-level access to the request/response processing.- Specified by:
addRequestFilterin interfaceNessieHttpClientBuilder- Overrides:
addRequestFilterin classNessieHttpClientBuilderImpl
-
addResponseFilter
Deprecated.Description copied from interface:NessieHttpClientBuilderAdd a response filter to the client. Enables low-level access to the request/response processing.- Specified by:
addResponseFilterin interfaceNessieHttpClientBuilder- Overrides:
addResponseFilterin 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)