|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.trendmicro.grid.acl.client.util.CommandlineClientFactory
public class CommandlineClientFactory
Implements a factory that creates ServiceClient instances out of provided commandline parameters.
Field Summary | |
---|---|
static String |
CLI_KEY_ADDRESS
Specifies the CLI parameter for the hostname and port of the ACL node. |
static String |
CLI_KEY_PASSWORD
Specifies the CLI parameter that allows to set the password. |
static String |
CLI_KEY_SSL
Specifies the CLI parameter that enables HTTPS. |
static String |
CLI_KEY_USERNAME
Specifies the CLI parameter that allows to set the username. |
Constructor Summary | |
---|---|
CommandlineClientFactory()
Constructs a new instance. |
|
CommandlineClientFactory(CommandlineParser parser)
Constructs a new instance and configures the given default parser. |
Method Summary | |
---|---|
ServiceClient |
newServiceClient()
Creates a new connected instance of service client using the parameters of the default cli parser. |
ServiceClient |
newServiceClient(CommandlineParser cli)
Creates a new connected instance of service client using the parameters of the given cli parser. |
static CommandlineParser |
setUp(CommandlineParser parser)
Configures the given commandline parser with the interface options supported by the newServiceClient method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CLI_KEY_ADDRESS
public static final String CLI_KEY_SSL
public static final String CLI_KEY_USERNAME
public static final String CLI_KEY_PASSWORD
Constructor Detail |
---|
public CommandlineClientFactory()
public CommandlineClientFactory(CommandlineParser parser)
parser
- the parser to configure and set as default.Method Detail |
---|
public static CommandlineParser setUp(CommandlineParser parser)
parser
- the parser to configure.
public ServiceClient newServiceClient(CommandlineParser cli)
cli
- an instance of CommandlineParser whose parse method was previously called.
public ServiceClient newServiceClient()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |