public interface CommandResponder
Modifier and Type | Interface and Description |
---|---|
static class |
CommandResponder.AnonymousIssueException
Thrown when a command cannot be accepted because it was issued anonymously.
|
static class |
CommandResponder.Base
Base implementation of a command responder.
|
static class |
CommandResponder.Session
A service session with a user.
|
static class |
CommandResponder.U
Command responder utilities.
|
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsAnonymousIssue()
Answers whether the command may be issued by unauthenticated users.
|
String |
commandName(CommandResponder.Session session)
Returns the localized name of the command.
|
void |
help(CommandResponder.Session session)
Replies with instructions on using the command.
|
Exception |
respond(String[] argv,
CommandResponder.Session session)
Responds to an invocation of the command.
|
boolean acceptsAnonymousIssue()
String commandName(CommandResponder.Session session)
void help(CommandResponder.Session session)
Exception respond(String[] argv, CommandResponder.Session session)
argv
- an array comprising the command name (index 0) and any arguments
(indeces 1..*).CommandResponder.AnonymousIssueException
- if session is anonymous, but
the responder requires a voter email address.