org.springframework.integration.xml.source
Class DomSourceFactory
java.lang.Object
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.
- Author:
- Jonas Partner, Mark Fisher
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DomSourceFactory
public DomSourceFactory()
DomSourceFactory
public DomSourceFactory(javax.xml.parsers.DocumentBuilderFactory docBuilderFactory)
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
- Returns:
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