public enum ArgsHandler extends Enum<ArgsHandler>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
void |
displayUsage()
Displays the app's usage in the standard output.
|
String |
getBindAddress() |
String |
getEmlViewer() |
String |
getOutputDirectory() |
String |
getPort() |
void |
handleArgs(String[] args)
Interprets command line arguments.
|
boolean |
memoryModeEnabled() |
boolean |
shouldStartInBackground() |
boolean |
shouldStartServerAtLaunch() |
static ArgsHandler |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ArgsHandler[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ArgsHandler INSTANCE
public static ArgsHandler[] values()
for (ArgsHandler c : ArgsHandler.values()) System.out.println(c);
public static ArgsHandler valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic void handleArgs(String[] args) throws org.apache.commons.cli.ParseException
args
- program's arguments.org.apache.commons.cli.ParseException
- when arguments are invalid.public void displayUsage()
public boolean shouldStartServerAtLaunch()
public boolean shouldStartInBackground()
shouldStartServerAtLaunch()
returns true}).shouldStartServerAtLaunch()
public String getPort()
null
string if unspecified.public String getBindAddress()
null
string if unspecified.public String getOutputDirectory()
null
string if unspecified.public boolean memoryModeEnabled()
public String getEmlViewer()
null
string if unspecified.Copyright © 2015. All rights reserved.