public static final class ArrowFlightSqlClientHandler.Builder extends Object
ArrowFlightSqlClientHandler.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ArrowFlightSqlClientHandler |
build()
Builds a new
ArrowFlightSqlClientHandler from the provided fields. |
ArrowFlightSqlClientHandler.Builder |
withBufferAllocator(BufferAllocator allocator)
Sets the
BufferAllocator to use in this handler. |
ArrowFlightSqlClientHandler.Builder |
withCallOptions(CallOption... options)
Adds the provided
CallOptions to this handler. |
ArrowFlightSqlClientHandler.Builder |
withCallOptions(Collection<CallOption> options)
Adds the provided
CallOptions to this handler. |
ArrowFlightSqlClientHandler.Builder |
withClientCertificate(String clientCertificatePath)
Sets the mTLS client certificate path (if mTLS is required).
|
ArrowFlightSqlClientHandler.Builder |
withClientKey(String clientKeyPath)
Sets the mTLS client certificate private key path (if mTLS is required).
|
ArrowFlightSqlClientHandler.Builder |
withDisableCertificateVerification(boolean disableCertificateVerification)
Sets whether to disable the certificate verification in this handler.
|
ArrowFlightSqlClientHandler.Builder |
withEncryption(boolean useEncryption)
Sets whether to use TLS encryption in this handler.
|
ArrowFlightSqlClientHandler.Builder |
withHost(String host)
Sets the host for this handler.
|
ArrowFlightSqlClientHandler.Builder |
withMiddlewareFactories(Collection<FlightClientMiddleware.Factory> factories)
Adds the provided
factories to the list of middlewareFactories of this handler. |
ArrowFlightSqlClientHandler.Builder |
withMiddlewareFactories(FlightClientMiddleware.Factory... factories)
Adds the provided
factories to the list of middlewareFactories of this handler. |
ArrowFlightSqlClientHandler.Builder |
withPassword(String password)
Sets the password for this handler.
|
ArrowFlightSqlClientHandler.Builder |
withPort(int port)
Sets the port for this handler.
|
ArrowFlightSqlClientHandler.Builder |
withRetainAuth(boolean retainAuth)
Indicates if bearer tokens negotiated should be re-used by connections
spawned for getStreams() calls.
|
ArrowFlightSqlClientHandler.Builder |
withRetainCookies(boolean retainCookies)
Indicates if cookies should be re-used by connections spawned for getStreams() calls.
|
ArrowFlightSqlClientHandler.Builder |
withSystemTrustStore(boolean useSystemTrustStore)
Sets whether to use the certificates from the operating system.
|
ArrowFlightSqlClientHandler.Builder |
withTlsRootCertificates(String tlsRootCertificatesPath)
Sets the TLS root certificate path as an alternative to using the System
or other Trust Store.
|
ArrowFlightSqlClientHandler.Builder |
withToken(String token)
Sets the token used in the token authentication.
|
ArrowFlightSqlClientHandler.Builder |
withTrustStorePassword(String trustStorePassword)
Sets the KeyStore password for this handler.
|
ArrowFlightSqlClientHandler.Builder |
withTrustStorePath(String trustStorePath)
Sets the KeyStore path for this handler.
|
ArrowFlightSqlClientHandler.Builder |
withUsername(String username)
Sets the username for this handler.
|
public ArrowFlightSqlClientHandler.Builder withHost(String host)
host - the host.public ArrowFlightSqlClientHandler.Builder withPort(int port)
port - the port.public ArrowFlightSqlClientHandler.Builder withUsername(String username)
username - the username.public ArrowFlightSqlClientHandler.Builder withPassword(String password)
password - the password.public ArrowFlightSqlClientHandler.Builder withTrustStorePath(String trustStorePath)
trustStorePath - the KeyStore path.public ArrowFlightSqlClientHandler.Builder withTrustStorePassword(String trustStorePassword)
trustStorePassword - the KeyStore password.public ArrowFlightSqlClientHandler.Builder withEncryption(boolean useEncryption)
useEncryption - whether to use TLS encryption.public ArrowFlightSqlClientHandler.Builder withDisableCertificateVerification(boolean disableCertificateVerification)
disableCertificateVerification - whether to disable certificate verification.public ArrowFlightSqlClientHandler.Builder withSystemTrustStore(boolean useSystemTrustStore)
useSystemTrustStore - whether to use the system operating certificates.public ArrowFlightSqlClientHandler.Builder withTlsRootCertificates(String tlsRootCertificatesPath)
tlsRootCertificatesPath - the TLS root certificate path (if TLS is required).public ArrowFlightSqlClientHandler.Builder withClientCertificate(String clientCertificatePath)
clientCertificatePath - the mTLS client certificate path (if mTLS is required).public ArrowFlightSqlClientHandler.Builder withClientKey(String clientKeyPath)
clientKeyPath - the mTLS client certificate private key path (if mTLS is required).public ArrowFlightSqlClientHandler.Builder withToken(String token)
token - the token value.public ArrowFlightSqlClientHandler.Builder withBufferAllocator(BufferAllocator allocator)
BufferAllocator to use in this handler.allocator - the allocator.public ArrowFlightSqlClientHandler.Builder withRetainCookies(boolean retainCookies)
retainCookies - The flag indicating if cookies should be re-used.public ArrowFlightSqlClientHandler.Builder withRetainAuth(boolean retainAuth)
retainAuth - The flag indicating if auth tokens should be re-used.public ArrowFlightSqlClientHandler.Builder withMiddlewareFactories(FlightClientMiddleware.Factory... factories)
factories to the list of middlewareFactories of this handler.factories - the factories to add.public ArrowFlightSqlClientHandler.Builder withMiddlewareFactories(Collection<FlightClientMiddleware.Factory> factories)
factories to the list of middlewareFactories of this handler.factories - the factories to add.public ArrowFlightSqlClientHandler.Builder withCallOptions(CallOption... options)
CallOptions to this handler.options - the optionspublic ArrowFlightSqlClientHandler.Builder withCallOptions(Collection<CallOption> options)
CallOptions to this handler.options - the optionspublic ArrowFlightSqlClientHandler build() throws SQLException
ArrowFlightSqlClientHandler from the provided fields.SQLException - on error.Copyright © 2024 The Apache Software Foundation. All rights reserved.