Interface ImapCommand
- All Known Implementing Classes:
QuotaCommand,QuotaRootCommand,SetQuotaCommand
public interface ImapCommand
Represents a processor for a particular Imap command. Implementations of this
interface should encapsulate all commands specific processing.
- Version:
- $Revision: 109034 $
- Author:
- Darrell DeBoer <darrell@apache.org>
-
Method Summary
Modifier and TypeMethodDescriptiongetName()voidprocess(ImapRequestLineReader request, ImapResponse response, ImapSession session) Performs all processing of the current Imap request.booleanvalidForState(ImapSessionState state) Specifies if this command is valid for the given session state.
-
Method Details
-
getName
String getName()- Returns:
- the name of the command, as specified in rfc2060.
-
validForState
Specifies if this command is valid for the given session state.- Parameters:
state- The currentstateof theImapSession- Returns:
trueif the command is valid in this state.
-
process
Performs all processing of the current Imap request. Reads command arguments from the request, performs processing, and writes responses back to the request object, which are sent to the client.- Parameters:
request- The current client requestresponse- The current server responsesession- The current session
-