java.lang.Object
org.odpi.openmetadata.adapters.connectors.restclients.factory.RESTClientFactory

public class RESTClientFactory extends Object
RESTClientFactory is used to create an ew REST client
  • Constructor Details

    • RESTClientFactory

      public RESTClientFactory(String serverName, String serverPlatformURLRoot)
      Constructor for unsecured client connector
      Parameters:
      serverName - name of the OMAG Server to call
      serverPlatformURLRoot - 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 call
      serverPlatformURLRoot - URL root of the server platform where the OMAG Server is running.
      userId - user id for the HTTP request
      password - password for the HTTP request
      secretsStoreConnectorMap - map from authentication type to supplied secrets store
  • Method Details

    • getClientConnector

      public RESTClientConnector getClientConnector() throws Exception
      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.