Class RESTClientFactory
- java.lang.Object
-
- org.odpi.openmetadata.adapters.connectors.restclients.RESTClientFactory
-
public class RESTClientFactory extends Object
-
-
Constructor Summary
Constructors Constructor Description RESTClientFactory(String serverName, String serverPlatformURLRoot)Constructor for unsecured client connectorRESTClientFactory(String serverName, String serverPlatformURLRoot, String userId, String password)Constructor for authenticated client connector
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RESTClientConnectorgetClientConnector()Retrieve the REST client connector.
-
-
-
Constructor Detail
-
RESTClientFactory
public RESTClientFactory(String serverName, String serverPlatformURLRoot)
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)
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 request
-
-
Method Detail
-
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.
-
-