Class ImapCommand

java.lang.Object
net.messagevortex.transport.imap.ImapCommand
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
ImapCommandAuthenticate, ImapCommandCapability, ImapCommandLogin, ImapCommandLogout, ImapCommandNoop

public abstract class ImapCommand extends Object implements Cloneable
  • Constructor Details

    • ImapCommand

      public ImapCommand()
  • Method Details

    • getCapabilities

      public abstract String[] getCapabilities(ImapConnection conn)
    • getCommandIdentifier

      public abstract String[] getCommandIdentifier()
    • processCommand

      public abstract String[] processCommand(ImapLine line) throws ImapException

      Processes the imap lie prefixed by a command returned by getCommandIdentifier().

      Parameters:
      line - the line containing the command to be processed
      Returns:
      multilined server reply (if any)
      Throws:
      ImapException - if processing fails