public enum Command extends Enum<Command>
| Enum Constant and Description |
|---|
CLEAR_REPORTS |
CLEAR_USAGE |
PING |
RELOAD |
REPORTS |
STOP |
USAGE |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(javax.servlet.http.HttpServletResponse response) |
static Command |
byName(String name) |
abstract Object |
decode(String response) |
abstract void |
execute(CommandContext context,
PrintWriter out) |
String |
getName() |
static Command |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Command[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Command PING
public static final Command RELOAD
public static final Command STOP
public static final Command USAGE
public static final Command REPORTS
public static final Command CLEAR_REPORTS
public static final Command CLEAR_USAGE
public static Command[] values()
for (Command c : Command.values()) System.out.println(c);
public static Command 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 String getName()
public abstract void execute(CommandContext context, PrintWriter out) throws IOException
IOExceptionpublic abstract Object decode(String response) throws IOException
IOExceptionpublic void apply(javax.servlet.http.HttpServletResponse response)
Copyright © 2014–2015. All rights reserved.