Enum Constant and Description |
---|
AUTHENTICATE
Validates the given user credentials
|
CONFIRM_EMAIL |
DELETE
Used to remove items
|
DO_NOTHING
Does nothing
|
EMAIL |
GET
Used to access individual items
|
HELP
Returns a help string that contains all commands and their arguments
|
POST
Used to create new items
|
PUT
Used to modify existing items
|
QUERY
Used to access items and perform queries
|
QUERY_LINK_SOURCES |
QUERY_LINK_TARGETS |
QUERY_LINKS |
REGISTER |
VALIDATE
Validates a command without executing it
|
Modifier and Type | Method and Description |
---|---|
abstract IResponse |
execute(java.lang.String agent,
java.util.Map<IArg,java.lang.String> args) |
ICmd |
getCmd() |
java.lang.String |
getNews(java.lang.String agent,
java.util.Map<IArg,java.lang.String> args) |
static ICmdImpl[] |
getValues() |
IResponse |
validate(java.lang.String agent,
java.util.Map<IArg,java.lang.String> args) |
static CmdImpl |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CmdImpl[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CmdImpl HELP
public static final CmdImpl DO_NOTHING
public static final CmdImpl AUTHENTICATE
public static final CmdImpl VALIDATE
public static final CmdImpl GET
public static final CmdImpl QUERY
public static final CmdImpl POST
public static final CmdImpl PUT
public static final CmdImpl DELETE
public static final CmdImpl QUERY_LINKS
public static final CmdImpl QUERY_LINK_SOURCES
public static final CmdImpl QUERY_LINK_TARGETS
public static final CmdImpl EMAIL
public static final CmdImpl REGISTER
public static final CmdImpl CONFIRM_EMAIL
public static CmdImpl[] values()
for (CmdImpl c : CmdImpl.values()) System.out.println(c);
public static CmdImpl valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic ICmd getCmd()
public java.lang.String getNews(java.lang.String agent, java.util.Map<IArg,java.lang.String> args)
public IResponse validate(java.lang.String agent, java.util.Map<IArg,java.lang.String> args)
public abstract IResponse execute(java.lang.String agent, java.util.Map<IArg,java.lang.String> args)
public static ICmdImpl[] getValues()