Package org.projectnessie.client.http
Interface NessieHttpClientBuilder
- All Superinterfaces:
NessieClientBuilder
- All Known Implementing Classes:
HttpClientBuilder,NessieHttpClientBuilder.AbstractNessieHttpClientBuilder,NessieHttpClientBuilderImpl
HTTP specific Nessie client builder interface.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classConvenience base class for implementations ofNessieHttpClientBuilder.Nested classes/interfaces inherited from interface org.projectnessie.client.NessieClientBuilder
NessieClientBuilder.AbstractNessieClientBuilder -
Method Summary
Modifier and TypeMethodDescriptionwithFollowRedirects(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 interface org.projectnessie.client.NessieClientBuilder
asInstanceOf, build, fromConfig, fromSystemProperties, name, priority, withApiCompatibilityCheck, withAuthentication, withAuthenticationFromConfig, withConnectionTimeout, withDisableCompression, withReadTimeout, withSSLContext, withSSLParameters, withTracing, withUri, withUri
-
Method Details
-
withHttp2Upgrade
Whether to allow HTTP/2 upgrade, default isfalse.Only valid on Java 11 and newer with Java's new HTTP client.
-
withFollowRedirects
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)
-