net.sf.xbus.protocol.xml
Class XMLParserTransformer

java.lang.Object
  extended by net.sf.xbus.protocol.xml.XMLParserTransformer
All Implemented Interfaces:
Transformer

public class XMLParserTransformer
extends java.lang.Object
implements Transformer

The XMLParserTransformer parses the given String into an org.w3c.Document.


Constructor Summary
XMLParserTransformer()
           
 
Method Summary
 java.lang.Object transform(java.lang.Object inObject, XBUSSystem source, XBUSSystem destination, Message destinationMessage)
          The transform method parses the given String into an org.w3c.Document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLParserTransformer

public XMLParserTransformer()
Method Detail

transform

public java.lang.Object transform(java.lang.Object inObject,
                                  XBUSSystem source,
                                  XBUSSystem destination,
                                  Message destinationMessage)
                           throws XException
The transform method parses the given String into an org.w3c.Document.

Specified by:
transform in interface Transformer
Parameters:
inObject - either the request or response that shall be parsed into an org.w3c.Document. This Object must be of type String.
source - not used
destination - where the message shall be sent to
destinationMessage - the message to send
Returns:
an org.w3c.Document containing the parsed inObject
Throws:
XException