Package org.projectnessie.client.http
Class NessieHttpClientBuilder.AbstractNessieHttpClientBuilder
- java.lang.Object
-
- org.projectnessie.client.NessieClientBuilder.AbstractNessieClientBuilder
-
- org.projectnessie.client.http.NessieHttpClientBuilder.AbstractNessieHttpClientBuilder
-
- All Implemented Interfaces:
NessieHttpClientBuilder,NessieClientBuilder
- Direct Known Subclasses:
NessieHttpClientBuilderImpl
- Enclosing interface:
- NessieHttpClientBuilder
public abstract static class NessieHttpClientBuilder.AbstractNessieHttpClientBuilder extends NessieClientBuilder.AbstractNessieClientBuilder implements NessieHttpClientBuilder
Convenience base class for implementations ofNessieHttpClientBuilder.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.projectnessie.client.NessieClientBuilder
NessieClientBuilder.AbstractNessieClientBuilder
-
Nested classes/interfaces inherited from interface org.projectnessie.client.http.NessieHttpClientBuilder
NessieHttpClientBuilder.AbstractNessieHttpClientBuilder
-
-
Constructor Summary
Constructors Constructor Description AbstractNessieHttpClientBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NessieHttpClientBuilderfromConfig(java.util.function.Function<java.lang.String,java.lang.String> configuration)Configure this HttpClientBuilder instance using a configuration object and standard Nessie configuration keys defined by the constants defined inNessieConfigConstants.NessieHttpClientBuilderwithFollowRedirects(java.lang.String redirects)Whether HTTP redirects are followed, default is to not follow redirects.NessieHttpClientBuilderwithForceUrlConnectionClient(boolean forceUrlConnectionClient)Whether to force using the "old"URLConnectionbased client when running on Java 11 and newer with Java's new HTTP client.NessieHttpClientBuilderwithHttp2Upgrade(boolean http2Upgrade)Whether to allow HTTP/2 upgrade, default isfalse.NessieHttpClientBuilderwithResponseFactory(HttpResponseFactory responseFactory)-
Methods inherited from class org.projectnessie.client.NessieClientBuilder.AbstractNessieClientBuilder
asInstanceOf, fromSystemProperties, withApiCompatibilityCheck, withAuthentication, withAuthenticationFromConfig, withConnectionTimeout, withDisableCompression, withReadTimeout, withSSLContext, withSSLParameters, withTracing, withUri, withUri
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.projectnessie.client.NessieClientBuilder
asInstanceOf, build, fromSystemProperties, name, priority, withApiCompatibilityCheck, withAuthentication, withAuthenticationFromConfig, withConnectionTimeout, withDisableCompression, withReadTimeout, withSSLContext, withSSLParameters, withTracing, withUri, withUri
-
-
-
-
Method Detail
-
fromConfig
public NessieHttpClientBuilder fromConfig(java.util.function.Function<java.lang.String,java.lang.String> configuration)
Configure 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 classNessieClientBuilder.AbstractNessieClientBuilder- Parameters:
configuration- The function that returns a configuration value for a configuration key.- Returns:
this- See Also:
NessieClientConfigSources
-
withHttp2Upgrade
public NessieHttpClientBuilder withHttp2Upgrade(boolean http2Upgrade)
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
-
withFollowRedirects
public NessieHttpClientBuilder withFollowRedirects(java.lang.String redirects)
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
-
withForceUrlConnectionClient
public NessieHttpClientBuilder withForceUrlConnectionClient(boolean forceUrlConnectionClient)
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
-
withResponseFactory
public NessieHttpClientBuilder withResponseFactory(HttpResponseFactory responseFactory)
- Specified by:
withResponseFactoryin interfaceNessieHttpClientBuilder
-
-