org.cid.distribution.plugins.data
Class DataCombinatorHandler

java.lang.Object
  extended by org.cid.distribution.base.MessageHandlerBase
      extended by org.cid.distribution.plugins.data.DataCombinatorHandler
All Implemented Interfaces:
DistributionContextAware, MessageEnumeration, MessageHandler

public class DataCombinatorHandler
extends MessageHandlerBase
implements MessageEnumeration

Version:
$Revision:111 $

Constructor Summary
DataCombinatorHandler()
          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.
 DataProvider getData()
           
 java.lang.String getProperty()
           
 boolean hasMoreMessages()
          Tests if this enumeration contains more elements.
 void init()
          Initializes the ListCombinatorHandler.
 DistributionMessage nextMessage()
          Returns the next message in this MessageEnumeration.
 MessageEnumeration process(DistributionMessage message)
          This handler processes a message by sending it to each one of the list members.
 void setData(java.lang.String data)
           
 void setProperty(java.lang.String property)
           
 
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

DataCombinatorHandler

public DataCombinatorHandler()
Class constructor

Method Detail

init

public void init()
          throws DistributionProcessingException,
                 DistributionConfigurationException
Initializes the ListCombinatorHandler. This handler resolves the reference to the DataProvider.

Specified by:
init in interface MessageHandler
Overrides:
init in class MessageHandlerBase
Throws:
DistributionProcessingException
DistributionConfigurationException
See Also:
MessageHandlerBase.init()

process

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

Specified by:
process in interface MessageHandler
Returns:
The result of the handle processing, usually indicating whether the processing of this message has succeeded or failed.
Throws:
DistributionProcessingException
DistributionConfigurationException

addRules

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


getData

public DataProvider getData()
Returns:
Returns the data.

setData

public void setData(java.lang.String data)
Parameters:
data - The data to set.

getProperty

public java.lang.String getProperty()
Returns:
Returns the property.

setProperty

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

hasMoreMessages

public boolean hasMoreMessages()
                        throws DistributionProcessingException,
                               DistributionConfigurationException
Description copied from interface: MessageEnumeration
Tests if this enumeration contains more elements.

Specified by:
hasMoreMessages in interface MessageEnumeration
Returns:
Throws:
DistributionProcessingException
DistributionConfigurationException

nextMessage

public DistributionMessage nextMessage()
                                throws DistributionProcessingException,
                                       DistributionConfigurationException
Description copied from interface: MessageEnumeration
Returns the next message in this MessageEnumeration.

Specified by:
nextMessage in interface MessageEnumeration
Returns:
Throws:
DistributionProcessingException
DistributionConfigurationException


Copyright © 2006 null. All Rights Reserved.