net.sf.xbus.protocol.simple
Class FixedTextTransformer

java.lang.Object
  extended by net.sf.xbus.protocol.simple.FixedTextTransformer
All Implemented Interfaces:
Transformer

public class FixedTextTransformer
extends java.lang.Object
implements Transformer

The FixedTextTransformer serves for sending fix text. The text is written from the configuration.

Author:
Stephan Dwel

Constructor Summary
FixedTextTransformer()
           
 
Method Summary
 java.lang.Object transform(java.lang.Object inObject, XBUSSystem source, XBUSSystem destination, Message destinationMessage)
          The transform creates a string from the configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedTextTransformer

public FixedTextTransformer()
Method Detail

transform

public java.lang.Object transform(java.lang.Object inObject,
                                  XBUSSystem source,
                                  XBUSSystem destination,
                                  Message destinationMessage)
                           throws XException
The transform creates a string from the configuration. It takes any input, ignores it and reads the output string from the configuration.

Specified by:
transform in interface Transformer
Parameters:
inObject - either the request or response that shall be transformed to another format
source - the XBUSSystem of the message of the inObject
destination - the XBUSSystem of the target message
destinationMessage - the target message eventually contains more information necessary for transforming
Returns:
the transformed Object, written to either the request or response of the target message
Throws:
XException
See Also:
Transformer.transform(java.lang.Object, net.sf.xbus.base.xbussystem.XBUSSystem, net.sf.xbus.base.xbussystem.XBUSSystem, net.sf.xbus.protocol.Message)