|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.cid.distribution.base.MessageHandlerBase org.cid.distribution.plugins.mail.MailWriterHandler
public class MailWriterHandler
This handler writes the message data to a file. If the path contains unexistent directories, they will be created.
This handler also allows accesing other filesystems using diferent types of URLs.
See @link http://jakarta.apache.org/commons/vfs/filesystems.html for more information on the filesystems wupported for writing and the way to access them.
The sequence %U can be used to create random filenames. Note that filenames generated this way do not preserve order when sorted alphabetically, though.
Constructor Summary | |
---|---|
MailWriterHandler()
Class constructor. |
Method Summary | |
---|---|
static void |
addRules(org.apache.commons.digester.Digester d,
java.lang.String patternPrefix)
Configures additional rules for the commons-digester library. |
java.lang.String |
getAppend()
|
DistributionMail |
getMail()
|
java.lang.String |
getUrl()
|
void |
init()
The distribution container calls this method on all handlers before starting the distribution process. |
MessageEnumeration |
process(DistributionMessage message)
Sends a message through this channel. |
void |
setAppend(java.lang.String append)
|
void |
setMail(java.lang.String mail)
|
void |
setUrl(java.lang.String url)
|
Methods inherited from class org.cid.distribution.base.MessageHandlerBase |
---|
destroy, getId, setDistributionContext, setId |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MailWriterHandler()
Method Detail |
---|
public void init() throws DistributionProcessingException, DistributionConfigurationException
MessageHandler
init
in interface MessageHandler
init
in class MessageHandlerBase
DistributionProcessingException
DistributionConfigurationException
public MessageEnumeration process(DistributionMessage message) throws DistributionProcessingException, DistributionConfigurationException
message
- The Message to send.
DistributionProcessingException
DistributionConfigurationException
public static void addRules(org.apache.commons.digester.Digester d, java.lang.String patternPrefix)
public java.lang.String getUrl()
public void setUrl(java.lang.String url)
filename
- The filename to set.public java.lang.String getAppend()
public void setAppend(java.lang.String append)
append
- The append to set.public DistributionMail getMail()
public void setMail(java.lang.String mail)
property
- The property to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |