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 of
NessieHttpClientBuilder.-
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromConfig(Function<String, String> configuration) Configure this HttpClientBuilder instance using a configuration object and standard Nessie configuration keys defined by the constants defined inNessieConfigConstants.withFollowRedirects(String redirects) Whether HTTP redirects are followed, default is to not follow redirects.withForceUrlConnectionClient(boolean forceUrlConnectionClient) Whether to force using the "old"URLConnectionbased client when running on Java 11 and newer with Java's new HTTP client.withHttp2Upgrade(boolean http2Upgrade) Whether to allow HTTP/2 upgrade, default isfalse.withResponseFactory(HttpResponseFactory responseFactory) Methods inherited from class org.projectnessie.client.NessieClientBuilder.AbstractNessieClientBuilder
asInstanceOf, fromSystemProperties, withApiCompatibilityCheck, withAuthentication, withAuthenticationFromConfig, withConnectionTimeout, withDisableCompression, withReadTimeout, withSSLContext, withSSLParameters, withTracing, withUri, withUriMethods 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, build, fromSystemProperties, name, priority, withApiCompatibilityCheck, withAuthentication, withAuthenticationFromConfig, withConnectionTimeout, withDisableCompression, withReadTimeout, withSSLContext, withSSLParameters, withTracing, withUri, withUri
-
Constructor Details
-
AbstractNessieHttpClientBuilder
public AbstractNessieHttpClientBuilder()
-
-
Method Details
-
fromConfig
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:
-
withHttp2Upgrade
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
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
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
- Specified by:
withResponseFactoryin interfaceNessieHttpClientBuilder
-