Spring Integration

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 Object
implements SourceFactory

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

Author:
Jonas Partner, Mark Fisher

Constructor Summary
DomSourceFactory()
           
DomSourceFactory(DocumentBuilderFactory docBuilderFactory)
           
 
Method Summary
protected  DOMSource createDomSourceForDocument(Document document)
           
protected  DOMSource createDomSourceForString(String s)
           
 Source createSource(Object payload)
          Create appropriate Source instance for payload
protected  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(DocumentBuilderFactory docBuilderFactory)
Method Detail

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

Spring Integration

Copyright © 2010. All Rights Reserved.