Home » synapse-1.2-src » org.apache.synapse.mediators.transform » [javadoc | source]
public class: XSLTMediator [javadoc | source]

All Implemented Interfaces:

The XSLT mediator performs an XSLT transformation requested, using the current message. The source attribute (if available) specifies the source element on which the transformation would be applied. It will default to the first child of the messages' SOAP body, if it is omitted. Additional properties passed into this mediator would become parameters for XSLT. Additional features passed into this mediator would become features except for "http://ws.apache.org/ns/synapse/transform/feature/dom" for the Transformer Factory, which is used to decide between using DOM and Streams during the transformation process. By default this is turned on as an optimization, but should be set to false if issues are detected Note: Set the TransformerFactory system property to generate and use translets -Djavax.xml.transform.TransformerFactory=org.apache.xalan.xsltc.trax.TransformerFactoryImpl
Field Summary
public static final  String USE_DOM_SOURCE_AND_RESULTS    The feature for which deciding swiching between DOM and Stream during the transformation process 
public static final  String DEFAULT_XPATH    Default XPath for the selection of the element for the evaluation of the XSLT over 
Fields inherited from org.apache.synapse.mediators.AbstractMediator:
log,  trace,  traceState
 public XSLTMediator() 
Method from org.apache.synapse.mediators.transform.XSLTMediator Summary:
addAllProperties,   addFeature,   addProperty,   getFeatures,   getProperties,   getSource,   getTargetPropertyName,   getXsltKey,   mediate,   setSource,   setSourceXPathString,   setTargetPropertyName,   setXsltKey
Methods from org.apache.synapse.mediators.AbstractMediator:
auditLog,   auditWarn,   getTraceState,   getType,   handleException,   handleException,   isTraceOn,   isTraceOrDebugOn,   setEffectiveTraceState,   setTraceState,   shouldTrace,   traceOrDebug,   traceOrDebugWarn
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.synapse.mediators.transform.XSLTMediator Detail:
 public  void addAllProperties(List<MediatorProperty> list) 
 public  void addFeature(String featureName,
    boolean isFeatureEnable) 
    to add a feature which need to set to the TransformerFactory
 public  void addProperty(MediatorProperty p) 
 public List<MediatorProperty> getFeatures() 
 public List<MediatorProperty> getProperties() 
 public SynapseXPath getSource() 
 public String getTargetPropertyName() 
 public String getXsltKey() 
 public boolean mediate(MessageContext synCtx) 
    Transforms this message (or its element specified as the source) using the given XSLT transformation
 public  void setSource(SynapseXPath source) 
 public  void setSourceXPathString(String sourceXPathString) 
 public  void setTargetPropertyName(String targetPropertyName) 
 public  void setXsltKey(String xsltKey)