org.jboss.soa.esb.actions.routing.email
Class EmailWiretap

java.lang.Object
  extended by org.jboss.soa.esb.actions.AbstractActionLifecycle
      extended by org.jboss.soa.esb.actions.AbstractActionPipelineProcessor
          extended by org.jboss.soa.esb.actions.routing.email.EmailWiretap
All Implemented Interfaces:
ActionLifecycle, ActionPipelineProcessor

public class EmailWiretap
extends AbstractActionPipelineProcessor

EmailWiretap will publish the ESB message payload to a configured email account.

Example configuration:

<action name="send-email" class="org.jboss.soa.esb.actions.routing.email.EmailWiretap">
    <property name="host" value="localhost" />
    <property name="port" value="25" />
    <property name="username" value="danbev" />
    <property name="password" value="password" />
    <property name="from" value="jbossesb" />
    <property name="sendTo" value="danbev" />
    <property name="subject" value="Subject goes here" />
 </action>
 
For details about the properties listed above please see Emailers javadoc.

Since:
4.6
Author:
Daniel Bevenius

Field Summary
 
Fields inherited from interface org.jboss.soa.esb.actions.ActionPipelineProcessor
PROCESS_EXCEPTION_METHOD, PROCESS_METHOD, PROCESS_SUCCESS_METHOD
 
Constructor Summary
EmailWiretap(ConfigTree config)
           
 
Method Summary
 Message process(Message message)
          Perform the action processing on the specified message.
 
Methods inherited from class org.jboss.soa.esb.actions.AbstractActionPipelineProcessor
processException, processSuccess
 
Methods inherited from class org.jboss.soa.esb.actions.AbstractActionLifecycle
destroy, initialise
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.soa.esb.actions.ActionLifecycle
destroy, initialise
 

Constructor Detail

EmailWiretap

public EmailWiretap(ConfigTree config)
             throws ConfigurationException
Throws:
ConfigurationException
Method Detail

process

public Message process(Message message)
                throws ActionProcessingException
Description copied from interface: ActionPipelineProcessor
Perform the action processing on the specified message. This method is invoked for each message passing throught the pipeline.

Parameters:
message - The current message being processed.
Returns:
The message to be passed to the next stage of the pipeline.
Throws:
ActionProcessingException - for errors during processing.