public class AvaticaCommonsHttpClientImpl extends Object implements AvaticaHttpClient, HttpClientPoolConfigurable, UsernamePasswordAuthenticateable, GSSAuthenticateable
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.http.impl.client.BasicAuthCache |
authCache |
protected org.apache.http.config.Lookup<org.apache.http.auth.AuthSchemeProvider> |
authRegistry |
protected org.apache.http.impl.client.CloseableHttpClient |
client |
protected org.apache.http.auth.UsernamePasswordCredentials |
credentials |
protected org.apache.http.client.CredentialsProvider |
credentialsProvider |
protected org.apache.http.HttpHost |
host |
protected org.apache.http.impl.conn.PoolingHttpClientConnectionManager |
pool |
protected org.apache.http.config.Registry<org.apache.http.conn.socket.ConnectionSocketFactory> |
socketFactoryRegistry |
protected URI |
uri |
protected Object |
userToken |
| Constructor and Description |
|---|
AvaticaCommonsHttpClientImpl(URL url) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
initializeClient(org.apache.http.impl.conn.PoolingHttpClientConnectionManager pool) |
byte[] |
send(byte[] request)
Sends a serialized request to the Avatica server.
|
void |
setGSSCredential(GSSCredential credential)
Sets the GSS Credential
If credential is null, then the current subject will be used
|
void |
setHttpClientPool(org.apache.http.impl.conn.PoolingHttpClientConnectionManager pool)
Sets a PoolingHttpClientConnectionManager containing the collection of SSL/TLS server
keys and truststores to use for HTTPS calls.
|
void |
setUsernamePassword(AuthenticationType authType,
String username,
String password)
Sets the username, password and method to be used for authentication.
|
protected final org.apache.http.HttpHost host
protected final URI uri
protected org.apache.http.impl.client.BasicAuthCache authCache
protected org.apache.http.impl.client.CloseableHttpClient client
protected org.apache.http.config.Registry<org.apache.http.conn.socket.ConnectionSocketFactory> socketFactoryRegistry
protected org.apache.http.impl.conn.PoolingHttpClientConnectionManager pool
protected org.apache.http.auth.UsernamePasswordCredentials credentials
protected org.apache.http.client.CredentialsProvider credentialsProvider
protected org.apache.http.config.Lookup<org.apache.http.auth.AuthSchemeProvider> authRegistry
protected Object userToken
public AvaticaCommonsHttpClientImpl(URL url)
protected void initializeClient(org.apache.http.impl.conn.PoolingHttpClientConnectionManager pool)
public byte[] send(byte[] request)
AvaticaHttpClientsend in interface AvaticaHttpClientrequest - The serialized request.public void setUsernamePassword(AuthenticationType authType, String username, String password)
UsernamePasswordAuthenticateablesetUsernamePassword in interface UsernamePasswordAuthenticateableauthType - Type of authenticationusername - Usernamepassword - Passwordpublic void setGSSCredential(GSSCredential credential)
GSSAuthenticateablesetGSSCredential in interface GSSAuthenticateablecredential - GSS Credentialspublic void setHttpClientPool(org.apache.http.impl.conn.PoolingHttpClientConnectionManager pool)
HttpClientPoolConfigurablesetHttpClientPool in interface HttpClientPoolConfigurablepool - The http connection poolCopyright © 2012-2021 Apache Software Foundation. All Rights Reserved.