org.springframework.integration.xml.source
Class DomSourceFactory

java.lang.Object
  extended by org.springframework.integration.xml.source.DomSourceFactory
All Implemented Interfaces:
SourceFactory

public class DomSourceFactory
extends java.lang.Object
implements SourceFactory

SourceFactory implementation which supports creation of a DOMSource from a Document or String payload.


Constructor Summary
DomSourceFactory()
           
DomSourceFactory(javax.xml.parsers.DocumentBuilderFactory docBuilderFactory)
           
 
Method Summary
protected  javax.xml.transform.dom.DOMSource createDomSourceForDocument(org.w3c.dom.Document document)
           
protected  javax.xml.transform.dom.DOMSource createDomSourceForString(java.lang.String s)
           
 javax.xml.transform.Source createSource(java.lang.Object payload)
          Create appropriate Source instance for payload
protected  javax.xml.parsers.DocumentBuilder getNewDocumentBuilder()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomSourceFactory

public DomSourceFactory()

DomSourceFactory

public DomSourceFactory(javax.xml.parsers.DocumentBuilderFactory docBuilderFactory)
Method Detail

createSource

public javax.xml.transform.Source createSource(java.lang.Object payload)
Description copied from interface: SourceFactory
Create appropriate Source instance for payload

Specified by:
createSource in interface SourceFactory

createDomSourceForDocument

protected javax.xml.transform.dom.DOMSource createDomSourceForDocument(org.w3c.dom.Document document)

createDomSourceForString

protected javax.xml.transform.dom.DOMSource createDomSourceForString(java.lang.String s)

getNewDocumentBuilder

protected javax.xml.parsers.DocumentBuilder getNewDocumentBuilder()
                                                           throws javax.xml.parsers.ParserConfigurationException
Throws:
javax.xml.parsers.ParserConfigurationException