| java.lang.Object org.apache.james.transport.mailets.listservcommands.BaseCommand org.apache.james.transport.mailets.listservcommands.ErrorCommand
ErrorCommand | public class ErrorCommand extends BaseCommand (Code) | | Error handles the error command.
It is configured by:
<command name="error" class="ErrorCommand"/>
It uses the formatted text-based resources for its return mail body:
- header
- error
- admincommands
After formatting the text, the message is delivered with
ErrorCommand.sendStandardReply version: CVS $Revision: 494012 $ $Date: 2007-01-08 11:23:58 +0100 (Mo, 08 Jan 2007) $ since: 2.2.0 |
ADMIN_COMMANDS | final protected static int ADMIN_COMMANDS(Code) | | |
ERROR | final protected static int ERROR(Code) | | |
HEADER | final protected static int HEADER(Code) | | |
onCommand | public void onCommand(Mail mail) throws MessagingException(Code) | | Delegate to
ErrorCommand.onError Parameters: mail - throws: MessagingException - |
onError | public void onError(Mail mail, String subject, String errorMessage) throws MessagingException(Code) | | An error occurred, send a message with the following text resources:
Parameters: subject - the subject of the message to send Parameters: mail - Parameters: errorMessage - |
Methods inherited from org.apache.james.transport.mailets.listservcommands.BaseCommand | protected MimeMessage generateMail(String destEmailAddr, String destDisplayName, String fromEmailAddr, String fromDisplayName, String emailSubject, String emailPlainText) throws Exception(Code)(Java Doc) protected ICommandListservManager getCommandListservManager()(Code)(Java Doc) public String getCommandName()(Code)(Java Doc) protected Configuration getConfiguration()(Code)(Java Doc) protected MailetContext getMailetContext()(Code)(Java Doc) protected Properties getStandardProperties()(Code)(Java Doc) protected UsersRepository getUsersRepository()(Code)(Java Doc) public void init(ICommandListservManager commandListservManager, Configuration configuration) throws ConfigurationException(Code)(Java Doc) protected XMLResources[] initXMLResources(String[] names) throws ConfigurationException(Code)(Java Doc) protected void log(String message)(Code)(Java Doc) protected void log(String message, Throwable t)(Code)(Java Doc) protected void sendStandardReply(Mail origMail, String subject, String message, String replyAddress) throws MessagingException(Code)(Java Doc)
|
|
|