Class RESTClientFactory
java.lang.Object
org.odpi.openmetadata.adapters.connectors.restclients.factory.RESTClientFactory
RESTClientFactory is used to create an ew REST client
-
Constructor Summary
ConstructorDescriptionRESTClientFactory
(String serverName, String serverPlatformURLRoot) Constructor for unsecured client connectorRESTClientFactory
(String serverName, String serverPlatformURLRoot, String userId, String password, Map<String, SecretsStoreConnector> secretsStoreConnectorMap, AuditLog auditLog) Constructor for authenticated client connector -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the REST client connector.
-
Constructor Details
-
RESTClientFactory
Constructor for unsecured client connector- Parameters:
serverName
- name of the OMAG Server to callserverPlatformURLRoot
- URL root of the server platform where the OMAG Server is running.
-
RESTClientFactory
public RESTClientFactory(String serverName, String serverPlatformURLRoot, String userId, String password, Map<String, SecretsStoreConnector> secretsStoreConnectorMap, AuditLog auditLog) Constructor for authenticated client connector- Parameters:
serverName
- name of the OMAG Server to callserverPlatformURLRoot
- URL root of the server platform where the OMAG Server is running.userId
- user id for the HTTP requestpassword
- password for the HTTP requestsecretsStoreConnectorMap
- map from authentication type to supplied secrets store
-
-
Method Details
-
getClientConnector
Retrieve the REST client connector.- Returns:
- client connector
- Throws:
Exception
- an unexpected exception - internal logic error as the parameters should have all been checked before this call.
-