Package net.messagevortex.transport.imap
Class ImapCommandFactory
java.lang.Object
net.messagevortex.transport.imap.ImapCommandFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidderegisterCommand(String command) static ImapCommandgetCommand(String name) static ImapCommand[]Returns a list of all supported ImapCommands in no particular order.static voidregisterCommand(ImapCommand command) register a command so that process command is able to identify it and call the apropriate handler.
-
Constructor Details
-
ImapCommandFactory
public ImapCommandFactory()
-
-
Method Details
-
registerCommand
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
-
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
-