com.goldeninnovations.smp.messageprocessor
Class MessageProcessorChain
java.lang.Object
com.goldeninnovations.smp.messageprocessor.MessageProcessorChain
- All Implemented Interfaces:
- MessageProcessor
public class MessageProcessorChain
- extends Object
- implements MessageProcessor
Allows multiple MessageProcessor
s to be chained together.
This class should be used if you want to utilize multiple MessageProcessor implementations for
each message.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageProcessorChain
public MessageProcessorChain()
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.