public class ParameterClient extends CommandLineParser
CommandLineParser.Template, CommandLineParser.Test| Modifier and Type | Field and Description |
|---|---|
private static InetAddress |
DEFHOST
The default server host.
|
private static int |
DEFPORT
The default server port.
|
static String |
FOOT
A footer usage message.
|
static String |
ONE
The one-parameter switches understood.
|
static Map |
USE
A human-readable description of the switches.
|
HELPSWITCHES| Constructor and Description |
|---|
ParameterClient()
Constructs a new parameter client.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] arg)
Reads the name of the parameter to query and eventually the host name
and the port from the command line and dumps the query result
to System out.
|
boolean |
process(String[] arg)
Does both, parsing and processing of the command line switches.
|
addHelpSwitches, getArguments, getCallerName, getCommandLine, getCommands, getRegisteredSwitches, hasAnySwitch, hasHelpSwitch, hasSwitch, hasSwitch, haveAllSwitches, parse, printCommandLine, printCommandLine, registerLine, registerSwitches, setCommands, staticUsage, usagepublic static final String ONE
public static final Map USE
public static final String FOOT
private static InetAddress DEFHOST
private static final int DEFPORT
public ParameterClient()
CommandLineParser.parse(java.lang.String[]).public boolean process(String[] arg) throws ParseException
ParseExceptionpublic static void main(String[] arg) throws ParseException
ParseException