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 Summary

    Constructors
    Constructor
    Description
    RESTClientFactory(String serverName, String serverPlatformURLRoot)
    Constructor for unsecured client connector
    RESTClientFactory(String serverName, String serverPlatformURLRoot, String userId, String password, Map<String,org.odpi.openmetadata.frameworks.connectors.SecretsStoreConnector> secretsStoreConnectorMap, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog)
    Constructor for authenticated client connector
  • Method Summary

    Modifier and Type
    Method
    Description
    org.odpi.openmetadata.adapters.connectors.restclients.RESTClientConnector
    Retrieve the REST client connector.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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,org.odpi.openmetadata.frameworks.connectors.SecretsStoreConnector> secretsStoreConnectorMap, org.odpi.openmetadata.frameworks.auditlog.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 org.odpi.openmetadata.adapters.connectors.restclients.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.