org.jboss.soa.esb.actions
Class StaticRouter

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.StaticRouter
All Implemented Interfaces:
ActionLifecycle, ActionPipelineProcessor

public class StaticRouter
extends AbstractActionPipelineProcessor


Field Summary
protected  ConfigTree _config
           
protected  java.util.List<java.lang.String[]> _destinations
           
protected static org.apache.log4j.Logger _logger
           
static java.lang.String ROUTE_TO_TAG
           
 
Fields inherited from interface org.jboss.soa.esb.actions.ActionPipelineProcessor
PROCESS_EXCEPTION_METHOD, PROCESS_METHOD, PROCESS_SUCCESS_METHOD
 
Constructor Summary
StaticRouter(ConfigTree config)
           
 
Method Summary
 void initialise()
          Initialise the action instance.
 Message process(Message message)
          Perform the action processing on the specified message.
 Message split(Message message)
           
 
Methods inherited from class org.jboss.soa.esb.actions.AbstractActionPipelineProcessor
processException, processSuccess
 
Methods inherited from class org.jboss.soa.esb.actions.AbstractActionLifecycle
destroy
 
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
 

Field Detail

ROUTE_TO_TAG

public static final java.lang.String ROUTE_TO_TAG
See Also:
Constant Field Values

_config

protected ConfigTree _config

_destinations

protected java.util.List<java.lang.String[]> _destinations

_logger

protected static org.apache.log4j.Logger _logger
Constructor Detail

StaticRouter

public StaticRouter(ConfigTree config)
             throws ConfigurationException,
                    RegistryException
Throws:
ConfigurationException
RegistryException
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.

initialise

public void initialise()
                throws ActionLifecycleException
Description copied from class: AbstractActionLifecycle
Initialise the action instance.

This method is called after the action instance has been instantiated so that configuration options can be validated.

Specified by:
initialise in interface ActionLifecycle
Overrides:
initialise in class AbstractActionLifecycle
Throws:
ActionLifecycleException - for errors during initialisation.

split

public Message split(Message message)
              throws MalformedEPRException,
                     RegistryException,
                     CourierException
Throws:
MalformedEPRException
RegistryException
CourierException