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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getName()
boolean
isLoginCommand()
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 Detail
-
getName
java.lang.String getName()
- Returns:
- the name of the command, as specified in rfc2060.
-
validForState
boolean validForState(ImapSessionState state)
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
void process(ImapRequestLineReader request, ImapResponse response, ImapSession session)
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()
-
-