org.openeai.implementations.gateways.transroutergateway
Class PaymasterRoutingCriteria


java.lang.Object

  |

  +--org.openeai.OpenEaiObject

        |

        +--org.openeai.jms.consumer.commands.ConsumerCommand

              |

              +--org.openeai.jms.consumer.commands.SyncCommandImpl

                    |

                    +--org.openeai.implementations.gateways.transroutergateway.RoutingCriteriaCommandImpl

                          |

                          +--org.openeai.implementations.gateways.transroutergateway.PaymasterRoutingCriteria

All Implemented Interfaces:
RoutingCriteriaCommand

public class PaymasterRoutingCriteria
extends RoutingCriteriaCommandImpl
implements RoutingCriteriaCommand

Implements the specific 'Routing Criteria' for the 'Phase 1' messaging components. TransRoute will ask this class if it should route to the Phase 1 end points based on the contents of the message. Currently, these end points include: PaymasterGateway, NessieGateway, DirectoryService

Criteria is: For BasicPerson messages, type must contain ONLY 'Employee' i.e. - the message must be coming from the Paymaster Batch application.

Author:
Tod Jackson

Field Summary
 
Fields inherited from class org.openeai.jms.consumer.commands.ConsumerCommand
CREATE_ACTION, DELETE_ACTION, MESSAGE_ACTION, MESSAGE_CATEGORY, MESSAGE_OBJECT, MESSAGE_RELEASE, MESSAGE_TYPE, QUERY_ACTION, UPDATE_ACTION
 
Fields inherited from class org.openeai.OpenEaiObject
logger
 
Constructor Summary
PaymasterRoutingCriteria()
          Constructor
 
Method Summary
 boolean shouldRoute(AppConfig aConfig, org.jdom.Document inDoc)
          Must be implemented by the specific 'Routing Criteria' classes that implement this interface.
 
Methods inherited from class org.openeai.jms.consumer.commands.SyncCommandImpl
getSyncErrorPublisher, getSyncErrorSyncDoc, getSyncErrorSyncPrimedDocumentUri, publishSyncError, publishSyncError, setSyncErrorSyncDoc, setSyncErrorSyncPrimedDocumentUri
 
Methods inherited from class org.openeai.jms.consumer.commands.ConsumerCommand
addAppConfig, buildError, convertToString, generateRelease, getAppConfig, getAppConfigs, getControlArea, getInboundXmlValidation, getMessageAction, getMessageBody, getMessageCategory, getMessageDumpDirectory, getMessageObject, getMessageRelease, getMessageType, getMsgComponents, getOutboundXmlValidation, initializeInput, setAppConfig, setInboundXmlValidation, setMessageDumpDirectory, setMsgComponents, setOutboundXmlValidation, setWriteToFile, writeMessageToFile, writeToFile
 
Methods inherited from class org.openeai.OpenEaiObject
addLog4jProperty, getAppName, getDebug, getFromAddr, getLog4jProperties, getMailHost, getMailService, getProperties, getToAddr, initializeLog4j, initializeLog4j, initializeLog4j, setAppName, setDebug, setFromAddr, setMailHost, setMailService, setProperties, setToAddr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaymasterRoutingCriteria


public PaymasterRoutingCriteria()
Constructor

Method Detail

shouldRoute


public boolean shouldRoute(AppConfig aConfig,
                           org.jdom.Document inDoc)
                    throws RoutingCriteriaCommandException
Description copied from interface: RoutingCriteriaCommand
Must be implemented by the specific 'Routing Criteria' classes that implement this interface. TransRoute will ask the implementation if it should route to the end points based on the contents of the message.

This method can use all resources at it's disposal to determine if an end-point wants the message routed to it. This could be based simply on the content of the message passed in, or it could be more complicated like querying an authoritative source for additional information that isn't provided in the message by using resources supplied by the AppConfig object passed in.

Specified by:
shouldRoute in interface RoutingCriteriaCommand
Returns:
boolean true means the router that invoked this method shoul route the message to the end-point.
RoutingCriteriaCommandException


Copyright © 2002, OpenEAI Software Foundation