public class HopsworksExternalClient extends Object implements HopsworksHttpClient
| Modifier and Type | Field and Description |
|---|---|
protected String |
apiKey |
protected String |
certKey |
protected org.apache.http.impl.conn.PoolingHttpClientConnectionManager |
connectionPool |
protected org.apache.http.impl.client.CloseableHttpClient |
httpClient |
protected org.apache.http.HttpHost |
httpHost |
protected static String |
K_CERTIFICATE |
protected String |
keyStorePath |
protected static org.slf4j.Logger |
LOGGER |
protected static String |
MATERIAL_PASSWD |
protected static String |
PARAM_NAME_PARAMETER_STORE |
protected static String |
PARAM_NAME_SECRET_STORE |
protected static String |
T_CERTIFICATE |
protected String |
trustStorePath |
| Constructor and Description |
|---|
HopsworksExternalClient(org.apache.http.impl.client.CloseableHttpClient httpClient,
org.apache.http.HttpHost httpHost) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.http.config.Registry<org.apache.http.conn.socket.ConnectionSocketFactory> |
createConnectionFactory(org.apache.http.HttpHost httpHost,
boolean hostnameVerification,
String trustStorePath) |
protected String |
getAssumedRole() |
<T> T |
handleRequest(org.apache.http.HttpRequest request,
org.apache.http.client.ResponseHandler<T> responseHandler) |
String |
readApiKey(SecretStore secretStore,
software.amazon.awssdk.regions.Region region,
String apiKeyFilepath)
Read API key.
|
protected String |
readApiKeyParamStore(software.amazon.awssdk.regions.Region region,
String secretKey) |
protected String |
readApiKeySecretManager(software.amazon.awssdk.regions.Region region,
String secretKey) |
protected static String |
readCertKey(String materialPwd) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCertKey, getKeyStorePath, getTrustStorePath, setCertKey, setKeyStorePath, setTrustStorePathprotected static final org.slf4j.Logger LOGGER
protected static final String PARAM_NAME_SECRET_STORE
protected static final String PARAM_NAME_PARAMETER_STORE
protected static final String MATERIAL_PASSWD
protected static final String T_CERTIFICATE
protected static final String K_CERTIFICATE
protected org.apache.http.impl.conn.PoolingHttpClientConnectionManager connectionPool
protected org.apache.http.HttpHost httpHost
protected org.apache.http.impl.client.CloseableHttpClient httpClient
protected String apiKey
protected String trustStorePath
protected String keyStorePath
protected String certKey
public HopsworksExternalClient(org.apache.http.impl.client.CloseableHttpClient httpClient,
org.apache.http.HttpHost httpHost)
protected org.apache.http.config.Registry<org.apache.http.conn.socket.ConnectionSocketFactory> createConnectionFactory(org.apache.http.HttpHost httpHost,
boolean hostnameVerification,
String trustStorePath)
throws IOException,
KeyStoreException,
CertificateException,
NoSuchAlgorithmException,
KeyManagementException
protected static String readCertKey(String materialPwd)
readCertKey in interface HopsworksHttpClientpublic String readApiKey(SecretStore secretStore, software.amazon.awssdk.regions.Region region, String apiKeyFilepath) throws IOException, FeatureStoreException
secretStore - SecretStore PARAMETER_STORE or SECRET_MANAGERregion - AWS regionsapiKeyFilepath - path to API key fileIOException - IOExceptionFeatureStoreException - FeatureStoreExceptionprotected String readApiKeyParamStore(software.amazon.awssdk.regions.Region region, String secretKey) throws FeatureStoreException
FeatureStoreExceptionprotected String readApiKeySecretManager(software.amazon.awssdk.regions.Region region, String secretKey) throws FeatureStoreException, IOException
FeatureStoreExceptionIOExceptionprotected String getAssumedRole() throws FeatureStoreException
FeatureStoreExceptionpublic <T> T handleRequest(org.apache.http.HttpRequest request,
org.apache.http.client.ResponseHandler<T> responseHandler)
throws IOException
handleRequest in interface HopsworksHttpClientIOExceptionCopyright © 2025. All rights reserved.