Class ImapCommandFactory

java.lang.Object
net.messagevortex.transport.imap.ImapCommandFactory

public class ImapCommandFactory extends Object
  • Constructor Details

    • ImapCommandFactory

      public ImapCommandFactory()
  • Method Details

    • registerCommand

      public static void registerCommand(ImapCommand command)

      register a command so that process command is able to identify it and call the apropriate handler.

      Parameters:
      command - the command to be registered as known command
    • deregisterCommand

      public static void deregisterCommand(String command)
    • getCommands

      public static ImapCommand[] getCommands()

      Returns a list of all supported ImapCommands in no particular order.

      The returned list is independent of any state.

      Returns:
      an array containing all ImapCommands available at any state
    • getCommand

      public static ImapCommand getCommand(String name)