org.subethamail.smtp.server
Class CommandHandler

java.lang.Object
  extended by org.subethamail.smtp.server.CommandHandler

public class CommandHandler
extends java.lang.Object

This class manages execution of a SMTP command.

Author:
Jon Stevens

Constructor Summary
CommandHandler()
           
CommandHandler(java.util.Collection<Command> availableCommands)
           
 
Method Summary
 void addCommand(Command command)
           
 boolean containsCommand(java.lang.String command)
           
 void handleCommand(ConnectionContext context, java.lang.String commandString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandHandler

public CommandHandler()

CommandHandler

public CommandHandler(java.util.Collection<Command> availableCommands)
Method Detail

addCommand

public void addCommand(Command command)

containsCommand

public boolean containsCommand(java.lang.String command)

handleCommand

public void handleCommand(ConnectionContext context,
                          java.lang.String commandString)
                   throws java.net.SocketTimeoutException,
                          java.io.IOException
Throws:
java.net.SocketTimeoutException
java.io.IOException