Class SetQuotaCommand

java.lang.Object
com.icegreen.greenmail.imap.commands.SetQuotaCommand
All Implemented Interfaces:
ImapCommand, ImapConstants

public class SetQuotaCommand extends Object
Implements IMAP Quota Extension.

See rfc2087

  • Field Details

  • Method Details

    • doProcess

      protected void doProcess(ImapRequestLineReader request, ImapResponse response, ImapSession session)
      This is the method overridden by specific command implementations to perform commend-specific processing.
      Parameters:
      request - The client request
      response - The server response
      session - The current client session
    • validForState

      public boolean validForState(ImapSessionState state)
      Specified by:
      validForState in interface ImapCommand
      Parameters:
      state - The current state of the ImapSession
      Returns:
      true if the command is valid in this state.
      See Also:
    • process

      public void process(ImapRequestLineReader request, ImapResponse response, ImapSession session)
      Template methods for handling command processing. This method reads argument values (validating them), and checks the request for correctness. If correct, the command processing is delegated to the specific command implementation.
      Specified by:
      process in interface ImapCommand
      Parameters:
      request - The current client request
      response - The current server response
      session - The current session
      See Also:
    • getExpectedMessage

      protected String getExpectedMessage()
      Provides a message which describes the expected format and arguments for this command. This is used to provide user feedback when a command request is malformed.
      Returns:
      A message describing the command protocol format.
    • getArgSyntax

      protected final String getArgSyntax()
      Provides the syntax for the command arguments if any. This value is used to provide user feedback in the case of a malformed request.

      For commands which do not allow any arguments, null should be returned.

      Returns:
      The syntax for the command arguments, or null for commands without arguments.
    • getMailbox

      protected MailFolder getMailbox(String mailboxName, ImapSession session, boolean mustExist) throws FolderException
      Throws:
      FolderException
    • getParser

      public CommandParser getParser()
    • getName

      public final String getName()
      Specified by:
      getName in interface ImapCommand
      Returns:
      the name of the command, as specified in rfc2060.