public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
createConfigurationFile(Configuration configuration)
Create the CLI configuration information file.
|
static BrokerClientException |
createUsageException(String errorMsg,
String rootCommand)
Create
BrokerClientException instance including the error message. |
static Configuration |
getConfiguration(String password)
Read CLI Client configuration file and binds its information into a
Configuration instance. |
public static BrokerClientException createUsageException(String errorMsg, String rootCommand)
BrokerClientException instance including the error message.errorMsg - error message.rootCommand - root command used in the script.BrokerClientException instance with error message.public static Configuration getConfiguration(String password)
Configuration instance.
If the password needs to be overridden it should be passed into the method, otherwise pass null.password - updated password that should be set into the Configuration instance. Pass null to use existing.Configuration instance.public static void createConfigurationFile(Configuration configuration)
configuration - instance containing the Configuration information.Copyright © 2018 WSO2. All rights reserved.