IListServCommand is the interface that all pluggable list serv commands must implement.
The lifecycle of a IListServCommand will be controlled by the {@link ICommandListservManager}
Requests sent to the CommandListservManager take the form of:
<listName>-<commandName>@domain
and if the commandName matches the command's name, then the {@link #onCommand} will be invoked.
A typical command is configured:
<command name="subscribe" class="Subscribe"/>
Typically, IListServCommands will format some text to reply with based off of resource files
and calls to {@link org.apache.james.util.XMLResources#getString}
This allows you to customize the messages sent by these commands by editing text files and not editing the javacode. |