Package mireka.pop.command
Class AbstractLoginCommand
- Object
-
- mireka.pop.command.AbstractLoginCommand
-
- All Implemented Interfaces:
Command
- Direct Known Subclasses:
ApopCommand,PassCommand
public abstract class AbstractLoginCommand extends Object implements Command
Base class for commands which authenticate a user, it provides a function for going into the Transaction state by locking the maildrop associated with the user.
-
-
Constructor Summary
Constructors Constructor Description AbstractLoginCommand(Session session)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidexecute(CommandParser commandParser)Executes the command, after parsing arguments if necessary.protected voidstartTransaction(Principal userPrincipal)
-
-
-
Field Detail
-
session
protected final Session session
-
-
Constructor Detail
-
AbstractLoginCommand
public AbstractLoginCommand(Session session)
-
-
Method Detail
-
execute
public abstract void execute(CommandParser commandParser) throws java.io.IOException, Pop3Exception
Description copied from interface:CommandExecutes the command, after parsing arguments if necessary.- Specified by:
executein interfaceCommand- Throws:
java.io.IOExceptionPop3Exception
-
startTransaction
protected void startTransaction(Principal userPrincipal) throws MaildropPopException, java.io.IOException
- Throws:
MaildropPopExceptionjava.io.IOException
-
-