public class SetQuotaCommand extends Object
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
log |
static String |
NAME |
protected CommandParser |
parser |
BAD, BYE, CAPABILITIES, HIERARCHY_DELIMITER, HIERARCHY_DELIMITER_CHAR, INBOX_NAME, MESSAGES, NAMESPACE_PREFIX, NAMESPACE_PREFIX_CHAR, NO, OK, SP, STORAGE, UNTAGGED, USER_NAMESPACE, VERSION
Modifier and Type | Method and Description |
---|---|
protected void |
doProcess(ImapRequestLineReader request,
ImapResponse response,
ImapSession session)
This is the method overridden by specific command implementations to
perform commend-specific processing.
|
protected String |
getArgSyntax()
Provides the syntax for the command arguments if any.
|
protected String |
getExpectedMessage()
Provides a message which describes the expected format and arguments
for this command.
|
protected MailFolder |
getMailbox(String mailboxName,
ImapSession session,
boolean mustExist) |
String |
getName() |
CommandParser |
getParser() |
void |
process(ImapRequestLineReader request,
ImapResponse response,
ImapSession session)
Template methods for handling command processing.
|
boolean |
validForState(ImapSessionState state)
Check that the state is
ImapSessionState.AUTHENTICATED or
ImapSessionState.SELECTED |
public static final String NAME
protected final org.slf4j.Logger log
protected CommandParser parser
protected void doProcess(ImapRequestLineReader request, ImapResponse response, ImapSession session)
request
- The client requestresponse
- The server responsesession
- The current client sessionpublic boolean validForState(ImapSessionState state)
ImapSessionState.AUTHENTICATED
or
ImapSessionState.SELECTED
validForState
in interface ImapCommand
state
- The current state
of the ImapSession
true
if the command is valid in this state.ImapCommand.validForState(com.icegreen.greenmail.imap.ImapSessionState)
public void process(ImapRequestLineReader request, ImapResponse response, ImapSession session)
process
in interface ImapCommand
request
- The current client requestresponse
- The current server responsesession
- The current sessionImapCommand.process(com.icegreen.greenmail.imap.ImapRequestLineReader, com.icegreen.greenmail.imap.ImapResponse, com.icegreen.greenmail.imap.ImapSession)
protected String getExpectedMessage()
protected final String getArgSyntax()
null
should
be returned.null
for
commands without arguments.protected MailFolder getMailbox(String mailboxName, ImapSession session, boolean mustExist) throws FolderException
FolderException
public CommandParser getParser()
public final String getName()
getName
in interface ImapCommand
Copyright © 2006–2019 Icegreen Technologies. All rights reserved.