Package org.subethamail.smtp.server
Class BaseCommand
java.lang.Object
org.subethamail.smtp.server.BaseCommand
- All Implemented Interfaces:
Command
- Direct Known Subclasses:
AuthCommand,DataCommand,EhloCommand,ExpandCommand,HelloCommand,HelpCommand,MailCommand,NoopCommand,QuitCommand,ReceiptCommand,ResetCommand,StartTLSCommand,VerifyCommand
- Author:
- Ian McFarland <ian@neo.com>, Jon Stevens, Jeff Schnitzer, Scott Hernandez
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseCommand(String name, String help) protectedBaseCommand(String name, String help, String argumentDescription) -
Method Summary
-
Constructor Details
-
BaseCommand
-
BaseCommand
-
-
Method Details
-
execute
public abstract void execute(String commandString, Session context) throws IOException, DropConnectionException This is the main method that you need to override in order to implement a command.- Specified by:
executein interfaceCommand- Throws:
IOExceptionDropConnectionException
-
getHelp
-
getName
Description copied from interface:CommandReturns the name of the command in upper case. For example "QUIT". -
getArgPredicate
-
getArgs
-