Class XSLTMappingHandler
- java.lang.Object
-
- org.wso2.carbon.mediator.datamapper.engine.core.mapper.XSLTMappingHandler
-
public class XSLTMappingHandler extends Object
This class handle the transformation of the input xml to the output xml. Saxon xslt transformation engine is used for the transformation.
-
-
Constructor Summary
Constructors Constructor Description XSLTMappingHandler(XSLTMappingResource xsltMappingResource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
doMap(Map<String,Object> properties, InputStream inputXML)
This method performs xslt transformation from input xml to the output xml
-
-
-
Constructor Detail
-
XSLTMappingHandler
public XSLTMappingHandler(XSLTMappingResource xsltMappingResource) throws TransformerException
- Parameters:
xsltMappingResource
- xslt mapping resource- Throws:
TransformerException
- errors arise from xslt transformation
-
-
Method Detail
-
doMap
public String doMap(Map<String,Object> properties, InputStream inputXML) throws TransformerException
This method performs xslt transformation from input xml to the output xml- Parameters:
properties
- set of runtime properties with valuesinputXML
- input stream of the input xml message- Returns:
- output xml as a string
- Throws:
TransformerException
- errors arise from xslt transformation
-
-