Class DigitalServiceBaseClient

java.lang.Object
org.odpi.openmetadata.accessservices.digitalservice.client.DigitalServiceBaseClient
Direct Known Subclasses:
CollectionsClient

public abstract class DigitalServiceBaseClient extends Object
DigitalServiceBaseClient supports the common properties and functions for the Digital Service OMAS.
  • Field Details

  • Constructor Details

    • DigitalServiceBaseClient

      public DigitalServiceBaseClient(String serverName, String serverPlatformURLRoot, int maxPageSize) throws InvalidParameterException
      Create a new client with no authentication embedded in the HTTP request.
      Parameters:
      serverName - name of the server to connect to
      serverPlatformURLRoot - the network address of the server running the OMAS REST services
      maxPageSize - number of elements that can be returned on a call
      Throws:
      InvalidParameterException - there is a problem creating the client-side components to issue any REST API calls.
    • DigitalServiceBaseClient

      public DigitalServiceBaseClient(String serverName, String serverPlatformURLRoot, String userId, String password, int maxPageSize) throws InvalidParameterException
      Create a new client that passes userId and password in each HTTP request. This is the userId/password of the calling server. The end user's userId is sent on each request.
      Parameters:
      serverName - name of the server to connect to
      serverPlatformURLRoot - the network address of the server running the OMAS REST services
      userId - caller's userId embedded in all HTTP requests
      password - caller's userId embedded in all HTTP requests
      maxPageSize - number of elements that can be returned on a call
      Throws:
      InvalidParameterException - there is a problem creating the client-side components to issue any REST API calls.