org.osesb.msgrouting.test
Class CustomTestXMLMessageTypeHelper_Test2
java.lang.Object
org.osesb.msgrouting.AbstractXMLMessageTypeHelper
org.osesb.msgrouting.DefaultXMLMessageTypeHelper
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. |
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
thisClassName
protected java.lang.String thisClassName
- The full name of this class.
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.
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.