Interface ImapCommand
public interface ImapCommand
Represents a processor for a particular Imap command. Implementations of this
interface should encpasulate all command specific processing.
- Version:
- $Revision: 109034 $
- Author:
- Darrell DeBoer <darrell@apache.org>
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
boolean
void
process
(ImapRequestLineReader request, ImapResponse response, ImapSession session) Performs all processing of the current Imap request.boolean
validForState
(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 currentstate
of theImapSession
- Returns:
true
if 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
-
isLoginCommand
boolean isLoginCommand()
-