Class ResultToStringTransformer
java.lang.Object
org.springframework.integration.xml.transformer.ResultToStringTransformer
- All Implemented Interfaces:
ResultTransformer
public class ResultToStringTransformer extends java.lang.Object implements ResultTransformer
Converts the passed
Result to an instance of String.
Supports StringResult and DOMResult-
Constructor Summary
Constructors Constructor Description ResultToStringTransformer()ResultToStringTransformer(javax.xml.transform.TransformerFactory transformerFactory)Construct an instance based on the providedTransformerFactory. -
Method Summary
Modifier and Type Method Description voidsetOutputProperties(java.util.Properties outputProperties)java.lang.ObjecttransformResult(javax.xml.transform.Result result)
-
Constructor Details
-
ResultToStringTransformer
public ResultToStringTransformer() -
ResultToStringTransformer
public ResultToStringTransformer(javax.xml.transform.TransformerFactory transformerFactory)Construct an instance based on the providedTransformerFactory.- Parameters:
transformerFactory- theTransformerFactoryto use.- Since:
- 4.3.19
-
-
Method Details
-
setOutputProperties
public void setOutputProperties(java.util.Properties outputProperties) -
transformResult
public java.lang.Object transformResult(javax.xml.transform.Result result)- Specified by:
transformResultin interfaceResultTransformer
-