Class DigitalServiceBaseClient
java.lang.Object
org.odpi.openmetadata.accessservices.digitalservice.client.DigitalServiceBaseClient
- Direct Known Subclasses:
CollectionsClient
DigitalServiceBaseClient supports the common properties and functions for the Digital Service OMAS.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final InvalidParameterHandler
protected final OpenMetadataStoreClient
protected final PropertyHelper
-
Constructor Summary
ConstructorDescriptionDigitalServiceBaseClient
(String serverName, String serverPlatformURLRoot, int maxPageSize) Create a new client with no authentication embedded in the HTTP request.DigitalServiceBaseClient
(String serverName, String serverPlatformURLRoot, String userId, String password, int maxPageSize) Create a new client that passes userId and password in each HTTP request. -
Method Summary
-
Field Details
-
invalidParameterHandler
-
propertyHelper
-
openMetadataStoreClient
-
-
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 toserverPlatformURLRoot
- the network address of the server running the OMAS REST servicesmaxPageSize
- 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 toserverPlatformURLRoot
- the network address of the server running the OMAS REST servicesuserId
- caller's userId embedded in all HTTP requestspassword
- caller's userId embedded in all HTTP requestsmaxPageSize
- 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.
-