org.cid.distribution.plugins.script
Class ScriptingHandler

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

public class ScriptingHandler
extends MessageHandlerBase

Executes arbitrary code.

Version:
$Revision:111 $

Constructor Summary
ScriptingHandler()
          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.
 java.lang.String getCode()
           
 java.lang.String getLanguage()
           
 void init()
          The distribution container calls this method on all handlers before starting the distribution process.
 MessageEnumeration process(DistributionMessage message)
          This handler processes a message by sending it to each one of the list members.
 void setCode(java.lang.String code)
           
 void setLanguage(java.lang.String language)
           
 
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

ScriptingHandler

public ScriptingHandler()
Class constructor

Method Detail

init

public void init()
          throws DistributionProcessingException,
                 DistributionConfigurationException
Description copied from interface: MessageHandler
The distribution container calls this method on all handlers before starting the distribution process. This method will be called once for each handler. The order in which the handlers are created is not defined.

Specified by:
init in interface MessageHandler
Overrides:
init in class MessageHandlerBase
Throws:
DistributionProcessingException
DistributionConfigurationException

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.


getCode

public java.lang.String getCode()
Returns:
Returns the code.

setCode

public void setCode(java.lang.String code)
Parameters:
code - The code to set.

getLanguage

public java.lang.String getLanguage()
Returns:
Returns the language.

setLanguage

public void setLanguage(java.lang.String language)
Parameters:
language - The language to set.


Copyright © 2006 null. All Rights Reserved.