|
|||||||||
| 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()
Populates a default set of commands based on what is in the CommandRegistry. |
|
CommandHandler(java.util.Collection<Command> availableCommands)
Pass in a Collection of Command objects. |
|
| Method Summary | |
|---|---|
void |
addCommand(Command command)
Adds a new command to the map. |
boolean |
containsCommand(java.lang.String command)
Does the map contain the named command? |
protected Command |
getCommandFromString(java.lang.String commandString)
Given a string, find the Command object. |
void |
handleAuthChallenge(ConnectionContext context,
java.lang.String commandString)
Executes an auth command. |
void |
handleCommand(ConnectionContext context,
java.lang.String commandString)
Calls the execute method on a command. |
void |
handleCommand(ConnectionContext context,
java.lang.String commandString,
Command command)
Calls the execute method on a command. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommandHandler()
public CommandHandler(java.util.Collection<Command> availableCommands)
availableCommands - | Method Detail |
|---|
public void addCommand(Command command)
command - public boolean containsCommand(java.lang.String command)
command -
public void handleCommand(ConnectionContext context,
java.lang.String commandString)
throws java.net.SocketTimeoutException,
java.io.IOException
context - commandString -
java.net.SocketTimeoutException
java.io.IOException
public void handleCommand(ConnectionContext context,
java.lang.String commandString,
Command command)
throws java.net.SocketTimeoutException,
java.io.IOException
context - commandString -
java.net.SocketTimeoutException
java.io.IOException
public void handleAuthChallenge(ConnectionContext context,
java.lang.String commandString)
throws java.net.SocketTimeoutException,
java.io.IOException
context - commandString -
java.net.SocketTimeoutException
java.io.IOException
protected Command getCommandFromString(java.lang.String commandString)
throws UnknownCommandException,
InvalidCommandNameException
commandString -
UnknownCommandException
InvalidCommandNameException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||