public class ImapCommandFactory extends Object
Constructor and Description |
---|
ImapCommandFactory() |
Modifier and Type | Method and Description |
---|---|
static void |
deregisterCommand(String command) |
static ImapCommand |
getCommand(String name) |
static ImapCommand[] |
getCommands()
Returns a list of all supported ImapCommands in no particular order.
|
static void |
registerCommand(ImapCommand command)
register a command so that process command is able to identify it and call the apropriate
handler.
|
public static void registerCommand(ImapCommand command)
register a command so that process command is able to identify it and call the apropriate handler.
command
- the command to be registered as known commandpublic static void deregisterCommand(String command)
public static ImapCommand[] getCommands()
Returns a list of all supported ImapCommands in no particular order.
The returned list is independent of any state.
public static ImapCommand getCommand(String name)
Copyright © 2023. All rights reserved.