public class RESTClientFactory extends Object
| Constructor and Description |
|---|
RESTClientFactory(String serverName,
String serverPlatformURLRoot)
Constructor for unsecured client connector
|
RESTClientFactory(String serverName,
String serverPlatformURLRoot,
String userId,
String password)
Constructor for authenticated client connector
|
| Modifier and Type | Method and Description |
|---|---|
RESTClientConnector |
getClientConnector()
Retrieve the REST client connector.
|
public RESTClientFactory(String serverName, String serverPlatformURLRoot)
serverName - name of the OMAG Server to callserverPlatformURLRoot - URL root of the server platform where the OMAG Server is running.public RESTClientFactory(String serverName, String serverPlatformURLRoot, String userId, String password)
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 requestpublic RESTClientConnector getClientConnector() throws Throwable
Throwable - an unexpected exception - internal logic error as the parameters should have all been checked
before this call.Copyright © 2018–2020 ODPi. All rights reserved.