|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.subethamail.smtp.server.CommandHandler
public class CommandHandler
This class manages execution of a SMTP command.
| Constructor Summary | |
|---|---|
CommandHandler()
|
|
CommandHandler(Collection<Command> availableCommands)
Create a command handler with a specific set of commands. |
|
| Method Summary | |
|---|---|
void |
addCommand(Command command)
Adds or replaces the specified command. |
boolean |
containsCommand(String command)
|
Command |
getCommand(String commandName)
Returns the command object corresponding to the specified command name. |
HelpMessage |
getHelp(String command)
|
Set<String> |
getVerbs()
|
void |
handleCommand(Session context,
String commandString)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommandHandler()
public CommandHandler(Collection<Command> availableCommands)
availableCommands - the available commands (not null)
TLS note: wrap commands with RequireTLSCommandWrapper when appropriate.| Method Detail |
|---|
public void addCommand(Command command)
public Command getCommand(String commandName)
commandName - case insensitive name of the command.
public boolean containsCommand(String command)
public Set<String> getVerbs()
public void handleCommand(Session context,
String commandString)
throws SocketTimeoutException,
IOException,
DropConnectionException
SocketTimeoutException
IOException
DropConnectionException
public HelpMessage getHelp(String command)
throws CommandException
CommandException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||