org.osesb.msgrouting.test
Class CustomTestXMLMessageTypeHelper_Test2

java.lang.Object
  extended by org.osesb.msgrouting.AbstractXMLMessageTypeHelper
      extended by org.osesb.msgrouting.DefaultXMLMessageTypeHelper
          extended by org.osesb.msgrouting.test.CustomTestXMLMessageTypeHelper_Test2

public class CustomTestXMLMessageTypeHelper_Test2
extends DefaultXMLMessageTypeHelper

A test implementation of XMLMessageTypeHelper that extends the default message type helper, DefaultXMLMessageTypeHelper, and adds '-test' to the local part of the message type that is returned by DefaultXMLMessageTypeHelper.


Field Summary
protected  java.lang.String thisClassName
          The full name of this class.
 
Fields inherited from class org.osesb.msgrouting.DefaultXMLMessageTypeHelper
documentNamespaceHelper, log, saxXPathElementHandler, xmlMessageTypeXPathExpressionListConfiguration
 
Fields inherited from class org.osesb.msgrouting.AbstractXMLMessageTypeHelper
debugFlag
 
Constructor Summary
CustomTestXMLMessageTypeHelper_Test2(XMLMessageTypeXPathExpressionListConfiguration xmlMessageTypeXPathExpressionListConfiguration)
          Creates a new instance of DefaultXMLMessageTypeHelper.
 
Method Summary
 javax.xml.namespace.QName getMessageType(java.lang.String xmlText)
          Extract a message type from a XML message.
static void main(java.lang.String[] args)
          Main method for testing.
 
Methods inherited from class org.osesb.msgrouting.DefaultXMLMessageTypeHelper
getNamespaceQualifiedMessageType, getUnqualifiedMessageType, parseForMessageType, setDebugFlag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

thisClassName

protected java.lang.String thisClassName
The full name of this class.

Constructor Detail

CustomTestXMLMessageTypeHelper_Test2

public CustomTestXMLMessageTypeHelper_Test2(XMLMessageTypeXPathExpressionListConfiguration xmlMessageTypeXPathExpressionListConfiguration)
                                     throws java.lang.Exception
Creates a new instance of DefaultXMLMessageTypeHelper.

Parameters:
xmlMessageTypeXPathExpressionListConfiguration - that configures message type locations in the population of XML messages as xpathExpressions.
Throws:
java.lang.Exception - if constructed with a null xmlMessageTypeXPathExpressionListConfiguration.
Method Detail

getMessageType

public javax.xml.namespace.QName getMessageType(java.lang.String xmlText)
                                         throws java.lang.Exception,
                                                MessageTypeNotFoundException
Extract a message type from a XML message.

Overrides:
getMessageType in class DefaultXMLMessageTypeHelper
Parameters:
xmlText - The XML text to extract the message type from.
Returns:
A QName that represents the message type.
Throws:
java.lang.Exception - if there was a general error extracting the message type.
MessageTypeNotFoundException - if the message type was not found.

main

public static void main(java.lang.String[] args)
Main method for testing.

Parameters:
args - The test data directory.