| java.lang.Object org.apache.james.transport.mailets.listservcommands.BaseCommand
All known Subclasses: org.apache.james.transport.mailets.listservcommands.Info, org.apache.james.transport.mailets.listservcommands.UnSubscribe, org.apache.james.transport.mailets.listservcommands.Subscribe, org.apache.james.transport.mailets.listservcommands.Owner, org.apache.james.transport.mailets.listservcommands.SubscribeConfirm, org.apache.james.transport.mailets.listservcommands.ErrorCommand, org.apache.james.transport.mailets.listservcommands.UnSubscribeConfirm,
Method Summary | |
protected MimeMessage | generateMail(String destEmailAddr, String destDisplayName, String fromEmailAddr, String fromDisplayName, String emailSubject, String emailPlainText) | protected ICommandListservManager | getCommandListservManager() | public String | getCommandName() | protected Configuration | getConfiguration() | protected MailetContext | getMailetContext() | protected Properties | getStandardProperties() | protected UsersRepository | getUsersRepository() | public void | init(ICommandListservManager commandListservManager, Configuration configuration) | protected XMLResources[] | initXMLResources(String[] names) | protected void | log(String message) Writes the specified message to a mailet log file, prepended by
the mailet's name. | protected void | log(String message, Throwable t) Writes an explanatory message and a stack trace for a given Throwable
exception to the mailet log file, prepended by the mailet's name. | protected void | sendStandardReply(Mail origMail, String subject, String message, String replyAddress) |
configuration | protected Configuration configuration(Code) | | |
generateMail | protected MimeMessage generateMail(String destEmailAddr, String destDisplayName, String fromEmailAddr, String fromDisplayName, String emailSubject, String emailPlainText) throws Exception(Code) | | Send mail
Parameters: destEmailAddr - the destination email addr: user@server.com Parameters: destDisplayName - the display name Parameters: fromEmailAddr - Parameters: fromDisplayName - Parameters: emailSubject - Parameters: emailPlainText - throws: Exception - |
getConfiguration | protected Configuration getConfiguration()(Code) | | See Also: Configuration |
init | public void init(ICommandListservManager commandListservManager, Configuration configuration) throws ConfigurationException(Code) | | Perform any required initialization
Parameters: configuration - throws: ConfigurationException - |
log | protected void log(String message)(Code) | | Writes the specified message to a mailet log file, prepended by
the mailet's name.
Parameters: message - - a String specifying the message to be written to the log file |
log | protected void log(String message, Throwable t)(Code) | | Writes an explanatory message and a stack trace for a given Throwable
exception to the mailet log file, prepended by the mailet's name.
Parameters: message - - a String that describes the error or exception Parameters: t - - the java.lang.Throwable error or exception |
sendStandardReply | protected void sendStandardReply(Mail origMail, String subject, String message, String replyAddress) throws MessagingException(Code) | | Produces a standard response replyAddress to the sender
Parameters: origMail - Parameters: subject - Parameters: message - Parameters: replyAddress - an optional custom replyAddress address throws: MessagingException - See Also: BaseCommand.generateMail See Also: MailetContext.sendMail |
|
|