public class AvaticaCommonsHttpClientSpnegoImpl extends AvaticaCommonsHttpClientImpl
(At this point it could probably be just merged back into
AvaticaCommonsHttpClientImpl
.)
HostnameVerificationConfigurable.HostnameVerification
Modifier and Type | Field and Description |
---|---|
static String |
CACHED_CONNECTIONS_MAX_KEY |
static String |
CACHED_CONNECTIONS_MAX_PER_ROUTE_KEY |
authCache, authRegistry, client, credentials, credentialsProvider, host, hostnameVerification, keyPassword, keystore, keystorePassword, pool, socketFactoryRegistry, truststore, truststorePassword, uri, userToken
Constructor and Description |
---|
AvaticaCommonsHttpClientSpnegoImpl(URL url)
Constructs an http client with the expectation that the user is already logged in with their
Kerberos identity via JAAS.
|
AvaticaCommonsHttpClientSpnegoImpl(URL url,
GSSCredential credential)
Constructs an HTTP client with user specified by the given credentials.
|
Modifier and Type | Method and Description |
---|---|
protected void |
configureConnectionPool(org.apache.http.config.Registry<org.apache.http.conn.socket.ConnectionSocketFactory> registry) |
byte[] |
send(byte[] request)
Sends a serialized request to the Avatica server.
|
void |
setGSSCredential(GSSCredential credential) |
configureHttpRegistry, configureHttpsRegistry, configureSocketFactories, initializeClient, loadKeyStore, loadTrustStore, setHostnameVerification, setKeyStore, setTrustStore, setUsernamePassword
public static final String CACHED_CONNECTIONS_MAX_KEY
public static final String CACHED_CONNECTIONS_MAX_PER_ROUTE_KEY
public AvaticaCommonsHttpClientSpnegoImpl(URL url)
url
- The URL for the Avatica serverpublic AvaticaCommonsHttpClientSpnegoImpl(URL url, GSSCredential credential)
url
- The URL for the Avatica servercredential
- The GSS credentialsprotected void configureConnectionPool(org.apache.http.config.Registry<org.apache.http.conn.socket.ConnectionSocketFactory> registry)
configureConnectionPool
in class AvaticaCommonsHttpClientImpl
public void setGSSCredential(GSSCredential credential)
public byte[] send(byte[] request)
AvaticaHttpClient
send
in interface AvaticaHttpClient
send
in class AvaticaCommonsHttpClientImpl
request
- The serialized request.Copyright © 2012-2020 Apache Software Foundation. All Rights Reserved.