net.sf.xbus.protocol.xml
Class XMLUnwrapperTransformer

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

public class XMLUnwrapperTransformer
extends java.lang.Object
implements Transformer

The XMLUnwrapperTransformer does the inverse transformation of the XMLWrapperTransformer. It awaits a XBUSXML document containing a CDATA section. The content of this CDATA section is given back as a String.


Constructor Summary
XMLUnwrapperTransformer()
           
 
Method Summary
 java.lang.Object transform(java.lang.Object inObject, XBUSSystem source, XBUSSystem destination, Message destinationMessage)
          The transform method unwraps a String from the given Object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLUnwrapperTransformer

public XMLUnwrapperTransformer()
Method Detail

transform

public java.lang.Object transform(java.lang.Object inObject,
                                  XBUSSystem source,
                                  XBUSSystem destination,
                                  Message destinationMessage)
The transform method unwraps a String from the given Object.

Specified by:
transform in interface Transformer
Parameters:
inObject - either the request or response. It must be an org.w3c.Document containing a XBUSXMLMessage.
source - not used
destination - not used
destinationMessage - not used
Returns:
an String unwrapped from the CDATA section of the given document.