Class DoAsAvaticaHttpClient
- java.lang.Object
-
- org.apache.calcite.avatica.remote.DoAsAvaticaHttpClient
-
- All Implemented Interfaces:
AvaticaHttpClient
public class DoAsAvaticaHttpClient extends java.lang.Object implements AvaticaHttpClient
HTTP client implementation which invokes the wrapped HTTP client in a doAs with the provided Subject.
-
-
Field Summary
Fields Modifier and Type Field Description private KerberosConnectionkerberosUtilprivate AvaticaHttpClientwrapped
-
Constructor Summary
Constructors Constructor Description DoAsAvaticaHttpClient(AvaticaHttpClient wrapped, KerberosConnection kerberosUtil)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]send(byte[] request)Sends a serialized request to the Avatica server.
-
-
-
Field Detail
-
wrapped
private final AvaticaHttpClient wrapped
-
kerberosUtil
private final KerberosConnection kerberosUtil
-
-
Constructor Detail
-
DoAsAvaticaHttpClient
public DoAsAvaticaHttpClient(AvaticaHttpClient wrapped, KerberosConnection kerberosUtil)
-
-
Method Detail
-
send
public byte[] send(byte[] request)
Description copied from interface:AvaticaHttpClientSends a serialized request to the Avatica server.- Specified by:
sendin interfaceAvaticaHttpClient- Parameters:
request- The serialized request.- Returns:
- The serialized response.
-
-