|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IListServCommand
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 | |
|---|---|
java.lang.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 |
|---|
java.lang.String getCommandName()
<command name="subscribe" class="Subscribe"/>
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
void onCommand(Mail mail)
throws javax.mail.MessagingException
mail -
javax.mail.MessagingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||