Interface DeleteState


public interface DeleteState
Operations available when responding to a DELETE command.
Author:
Chris Burdess
See Also:
  • Method Details

    • deleted

      void deleted(AuthenticatedHandler handler)
      Mailbox deleted successfully.
      Parameters:
      handler - continues receiving authenticated commands
    • mailboxNotFound

      void mailboxNotFound(String message, AuthenticatedHandler handler)
      Mailbox does not exist.
      Parameters:
      message - the error message
      handler - continues receiving authenticated commands
    • cannotDelete

      void cannotDelete(String message, AuthenticatedHandler handler)
      Cannot delete mailbox (has children, is INBOX, etc.).
      Parameters:
      message - the error message
      handler - continues receiving authenticated commands
    • serverShuttingDown

      void serverShuttingDown()
      Server is shutting down, close gracefully.

      Sends an untagged BYE response indicating the server is shutting down and closes the connection.