public class ConfigurationManagementClient extends Object
| Constructor and Description |
|---|
ConfigurationManagementClient(String serverName,
String serverPlatformRootURL)
Create a new client with no authentication embedded in the HTTP request.
|
ConfigurationManagementClient(String serverName,
String serverPlatformRootURL,
String userId,
String password)
Create a new client that passes userId and password in each HTTP request.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setOMAGServerConfig(String userId,
OMAGServerConfig uiServerConfig)
Set up the configuration properties for an OMAG Server in a single command.
|
public ConfigurationManagementClient(String serverName, String serverPlatformRootURL) throws OMAGInvalidParameterException
serverName - name of the server to connect toserverPlatformRootURL - the network address of the server running the OMAS REST serversOMAGInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public ConfigurationManagementClient(String serverName, String serverPlatformRootURL, String userId, String password) throws OMAGInvalidParameterException
serverName - name of the server to connect toserverPlatformRootURL - the network address of the server running the OMAS REST serversuserId - caller's userId embedded in all HTTP requestspassword - caller's userId embedded in all HTTP requestsOMAGInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public void setOMAGServerConfig(String userId, OMAGServerConfig uiServerConfig) throws OMAGNotAuthorizedException, OMAGConfigurationErrorException, OMAGInvalidParameterException
userId - user that is issuing the requestuiServerConfig - configuration for the serverOMAGNotAuthorizedException - the supplied userId is not authorized to issue this command orOMAGConfigurationErrorException - there is a problem using the supplied configuration orOMAGInvalidParameterException - invalid serverName or destinationPlatform parameter.Copyright © 2018–2019 ODPi. All rights reserved.