|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
IListServCommand is the interface that all pluggable list serv commands must implement.
The lifecycle of a IListServCommand will be controlled by the ICommandListservManager
Requests sent to the CommandListservManager take the form of:
<listName>-<commandName>@domainand if the commandName matches the command's name, then the
onCommand(org.apache.mailet.Mail)
will be invoked.
<command name="subscribe" class="Subscribe"/>
XMLResources.getString(java.lang.String)
This allows you to customize the messages sent by these commands by editing text files and not editing the javacode.
ICommandListservManager
Method Summary | |
String |
getCommandName()
The name of this command specified by the 'name' parameter. |
void |
init(ICommandListservManager commandListservManager,
org.apache.avalon.framework.configuration.Configuration configuration)
Perform any required initialization |
void |
onCommand(Mail mail)
Process this command to your hearts content |
Method Detail |
public String getCommandName()
<command name="subscribe" class="Subscribe"/>
public void init(ICommandListservManager commandListservManager, org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
configuration
-
org.apache.avalon.framework.configuration.ConfigurationException
public void onCommand(Mail mail) throws MessagingException
mail
-
MessagingException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |