org.springframework.integration.xml.source
Class DomSourceFactory
java.lang.Object
org.springframework.integration.xml.source.DomSourceFactory
- All Implemented Interfaces:
- SourceFactory
public class DomSourceFactory
- extends 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(DocumentBuilderFactory docBuilderFactory)
createSource
public Source createSource(Object payload)
- Description copied from interface:
SourceFactory
- Create appropriate
Source instance for payload
- Specified by:
createSource in interface SourceFactory
createDomSourceForDocument
protected DOMSource createDomSourceForDocument(Document document)
createDomSourceForString
protected DOMSource createDomSourceForString(String s)
getNewDocumentBuilder
protected DocumentBuilder getNewDocumentBuilder()
throws ParserConfigurationException
- Throws:
ParserConfigurationException
Copyright © 2010. All Rights Reserved.