Package org.projectnessie.client.http
Interface NessieHttpClientBuilder
-
- All Superinterfaces:
NessieClientBuilder
- All Known Implementing Classes:
HttpClientBuilder,NessieHttpClientBuilder.AbstractNessieHttpClientBuilder,NessieHttpClientBuilderImpl
public interface NessieHttpClientBuilder extends NessieClientBuilder
HTTP specific Nessie client builder interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classNessieHttpClientBuilder.AbstractNessieHttpClientBuilderConvenience base class for implementations ofNessieHttpClientBuilder.-
Nested classes/interfaces inherited from interface org.projectnessie.client.NessieClientBuilder
NessieClientBuilder.AbstractNessieClientBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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 interface org.projectnessie.client.NessieClientBuilder
asInstanceOf, build, fromConfig, fromSystemProperties, name, priority, withApiCompatibilityCheck, withAuthentication, withAuthenticationFromConfig, withConnectionTimeout, withDisableCompression, withReadTimeout, withSSLContext, withSSLParameters, withTracing, withUri, withUri
-
-
-
-
Method Detail
-
withHttp2Upgrade
@CanIgnoreReturnValue NessieHttpClientBuilder withHttp2Upgrade(boolean http2Upgrade)
Whether to allow HTTP/2 upgrade, default isfalse.Only valid on Java 11 and newer with Java's new HTTP client.
-
withFollowRedirects
@CanIgnoreReturnValue NessieHttpClientBuilder withFollowRedirects(java.lang.String redirects)
Whether 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.
-
withForceUrlConnectionClient
@CanIgnoreReturnValue NessieHttpClientBuilder withForceUrlConnectionClient(boolean forceUrlConnectionClient)
Whether to force using the "old"URLConnectionbased client when running on Java 11 and newer with Java's new HTTP client.
-
withResponseFactory
@CanIgnoreReturnValue NessieHttpClientBuilder withResponseFactory(HttpResponseFactory responseFactory)
-
-