com.goldeninnovations.smp.messageprocessor
Class MessageProcessorChain

java.lang.Object
  extended by com.goldeninnovations.smp.messageprocessor.MessageProcessorChain
All Implemented Interfaces:
MessageProcessor

public class MessageProcessorChain
extends Object
implements MessageProcessor

Allows multiple MessageProcessors to be chained together.

This class should be used if you want to utilize multiple MessageProcessor implementations for each message.


Constructor Summary
MessageProcessorChain()
           
 
Method Summary
 void addMessageProcessor(MessageProcessor processor)
          Adds a new MessageFilter to the chain.
 void processMessage(EmailMessage message)
          Sends the message to each of the MessageProcessors.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageProcessorChain

public MessageProcessorChain()
Method Detail

processMessage

public void processMessage(EmailMessage message)
Sends the message to each of the MessageProcessors.

Specified by:
processMessage in interface MessageProcessor
Parameters:
message - the email to process.

addMessageProcessor

public void addMessageProcessor(MessageProcessor processor)
Adds a new MessageFilter to the chain.

Parameters:
processor - the messageFilter to add.


Copyright © 2010 Eric Daugherty. All Rights Reserved.