org.osesb.msgrouting.test
Class CustomTestXMLMessageTypeHelper_Test1

java.lang.Object
  extended by org.osesb.msgrouting.AbstractXMLMessageTypeHelper
      extended by org.osesb.msgrouting.test.CustomTestXMLMessageTypeHelper_Test1

public class CustomTestXMLMessageTypeHelper_Test1
extends AbstractXMLMessageTypeHelper

A test implementation of XMLMessageTypeHelper that returns a message type QName with a local part that is set to the name of the root XML element.


Field Summary
protected  java.lang.String thisClassName
          The full name of this class.
 
Fields inherited from class org.osesb.msgrouting.AbstractXMLMessageTypeHelper
debugFlag
 
Constructor Summary
CustomTestXMLMessageTypeHelper_Test1()
          Creates a new instance of CustomTestXMLMessageTypeHelper_Test1.
 
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.AbstractXMLMessageTypeHelper
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_Test1

public CustomTestXMLMessageTypeHelper_Test1()
Creates a new instance of CustomTestXMLMessageTypeHelper_Test1.

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.

Specified by:
getMessageType in class AbstractXMLMessageTypeHelper
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.