Spring Integration

org.springframework.integration.xml.transformer
Class ResultToDocumentTransformer

java.lang.Object
  extended by 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

Constructor Summary
ResultToDocumentTransformer()
           
ResultToDocumentTransformer(DocumentBuilderFactory documentBuilderFactory)
           
 
Method Summary
protected  Document createDocumentFromDomResult(DOMResult domResult)
           
protected  Document createDocumentFromStringResult(org.springframework.xml.transform.StringResult stringResult)
           
protected  DocumentBuilder getDocumentBuilder()
           
 Object transformResult(Result res)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultToDocumentTransformer

public ResultToDocumentTransformer(DocumentBuilderFactory documentBuilderFactory)

ResultToDocumentTransformer

public ResultToDocumentTransformer()
Method Detail

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()

Spring Integration

Copyright © 2010. All Rights Reserved.