Spring Integration

org.springframework.integration.xml.transformer
Class ResultToStringTransformer

java.lang.Object
  extended by org.springframework.integration.xml.transformer.ResultToStringTransformer
All Implemented Interfaces:
ResultTransformer

public class ResultToStringTransformer
extends Object
implements ResultTransformer

Converts the passed Result to an instance of String Supports StringResult and DOMResult

Author:
Jonas Partner

Constructor Summary
ResultToStringTransformer()
           
 
Method Summary
protected  DocumentBuilder getNewDocumentBuilder()
           
protected  Transformer getNewTransformer()
           
 Object transformResult(Result res)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultToStringTransformer

public ResultToStringTransformer()
Method Detail

getNewTransformer

protected Transformer getNewTransformer()
                                 throws TransformerConfigurationException
Throws:
TransformerConfigurationException

transformResult

public Object transformResult(Result res)
Specified by:
transformResult in interface ResultTransformer

getNewDocumentBuilder

protected DocumentBuilder getNewDocumentBuilder()
                                         throws ParserConfigurationException
Throws:
ParserConfigurationException

Spring Integration

Copyright © 2010. All Rights Reserved.