Spring Web Flow

org.springframework.webflow.engine.model.builder.xml
Interface DocumentLoader

All Known Implementing Classes:
DefaultDocumentLoader

public interface DocumentLoader

A generic strategy interface encapsulating the logic to load an XML-based document.

Author:
Keith Donald

Method Summary
 org.w3c.dom.Document loadDocument(org.springframework.core.io.Resource resource)
          Load the XML-based document from the external resource.
 

Method Detail

loadDocument

org.w3c.dom.Document loadDocument(org.springframework.core.io.Resource resource)
                                  throws java.io.IOException,
                                         javax.xml.parsers.ParserConfigurationException,
                                         org.xml.sax.SAXException
Load the XML-based document from the external resource.

Parameters:
resource - the document resource
Returns:
the loaded (parsed) document
Throws:
java.io.IOException - an exception occured accessing the resource input stream
javax.xml.parsers.ParserConfigurationException - an exception occured building the document parser
org.xml.sax.SAXException - a error occured during document parsing

Spring Web Flow