|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.mail.MailCommandBuilder
public class MailCommandBuilder
Build an AbstractMailCommand from MailContext.
As a user requests a command, the command is mapped to an MailCommand instance. The registration of MailCommand, and the resolution of a command string to a command instance are the tasks of this class.
| Constructor Summary | |
|---|---|
MailCommandBuilder()
Constructor for the MailCommandBuilder object |
|
| Method Summary | |
|---|---|
AbstractMailCommand |
buildAbstractMailCommand(MailContext mailContext)
Build a mail command. |
void |
configure()
Configure the cmd to mail command class mapping. |
protected Class |
getClassForCommand(String cmd)
Get Class for a command |
boolean |
isCommandMapped(String cmd)
Test if command is mapped to a Command class |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MailCommandBuilder()
| Method Detail |
|---|
public AbstractMailCommand buildAbstractMailCommand(MailContext mailContext)
mailContext - Description of the Parameter
protected Class getClassForCommand(String cmd)
cmd - the command
public boolean isCommandMapped(String cmd)
cmd - the command
public void configure()
New commands are registered here. A command name is associated with each command class.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||