|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CommandResponder
A responder to a user command.
| Nested Class Summary | |
|---|---|
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 user session in a command response inteface. |
static class |
CommandResponder.X
Command responder utilities. |
| Method Summary | |
|---|---|
boolean |
acceptsAnonymousIssue()
Returns true if the command may be issued by an anonymous or unauthenticated user; false if an authenticated user email address is required. |
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. |
| Method Detail |
|---|
boolean acceptsAnonymousIssue()
String commandName(CommandResponder.Session session)
void help(CommandResponder.Session session)
Exception respond(String[] argv,
CommandResponder.Session session)
argv - array of command name (index 0)
and any arguments (indeces 1..*)
CommandResponder.AnonymousIssueException - if session
is anonymous, but the responder requires a voter email address
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||