org.springframework.integration.xml.transformer
Class ResultToDocumentTransformer
java.lang.Object
org.springframework.integration.xml.transformer.ResultToDocumentTransformer
- All Implemented Interfaces:
- ResultTransformer
public class ResultToDocumentTransformer
- extends Object
- implements ResultTransformer
Creates a Document
from a Result
payload. Supports
DOMResult
and StringResult
implementations.
- Author:
- Jonas Partner
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResultToDocumentTransformer
public ResultToDocumentTransformer(DocumentBuilderFactory documentBuilderFactory)
ResultToDocumentTransformer
public ResultToDocumentTransformer()
transformResult
public Object transformResult(Result res)
- Specified by:
transformResult
in interface ResultTransformer
createDocumentFromDomResult
protected Document createDocumentFromDomResult(DOMResult domResult)
createDocumentFromStringResult
protected Document createDocumentFromStringResult(org.springframework.xml.transform.StringResult stringResult)
getDocumentBuilder
protected DocumentBuilder getDocumentBuilder()
Copyright © 2010. All Rights Reserved.