org.cid.distribution.plugins.mail
Class MailEditorHandler

java.lang.Object
  extended by org.cid.distribution.base.MessageHandlerBase
      extended by org.cid.distribution.plugins.mail.MailEditorHandler
All Implemented Interfaces:
DistributionContextAware, MessageHandler

public class MailEditorHandler
extends MessageHandlerBase

The OutputHandler sends the processed message directly to the OutputChannel.

Version:
$Revision:111 $

Constructor Summary
MailEditorHandler()
          Class constructor
 
Method Summary
 void addAction(java.lang.String action, java.lang.String data)
          Adds an action to this MailEditorHandler
static void addRules(org.apache.commons.digester.Digester d, java.lang.String patternPrefix)
          Configures additional rules for the commons-digester library.
 DistributionMail getMail()
           
 MessageEnumeration process(DistributionMessage message)
          This handler processes a message by sending it to each one of the list members.
 void setMail(java.lang.String mail)
           
 
Methods inherited from class org.cid.distribution.base.MessageHandlerBase
destroy, getId, init, setDistributionContext, setId
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailEditorHandler

public MailEditorHandler()
Class constructor

Method Detail

addAction

public void addAction(java.lang.String action,
                      java.lang.String data)
Adds an action to this MailEditorHandler

Parameters:
action - The action upon the message.
data - The action's data.

process

public MessageEnumeration process(DistributionMessage message)
                           throws DistributionProcessingException
This handler processes a message by sending it to each one of the list members.

Returns:
The result of the handle processing, usually indicating whether the processing of this message has succeeded or failed.
Throws:
DistributionProcessingException

addRules

public static void addRules(org.apache.commons.digester.Digester d,
                            java.lang.String patternPrefix)
Configures additional rules for the commons-digester library.


getMail

public DistributionMail getMail()
Returns:
Returns the property.

setMail

public void setMail(java.lang.String mail)
Parameters:
property - The property to set.


Copyright © 2006 null. All Rights Reserved.