|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectAbstractLogEnabled
org.exist.cocoon.XMLDBSourceFactory
This class implements the xmldb:// pseudo-protocol and allows to get XML content from an XML:DB enabled XML database.
The configuration of this protocol is as follows:
<source-factory name="xmldb" src="org.exist.cocoon.XMLDBSourceFactory>
<driver type="foo" class="org.foomaker.FooXMLDBDriver"
user="scott" password="tiger"
collection="//localhost:8080/foo/base-path/"/>
<driver...
<source-factory>
The type attribute indicates the database type that will be used for URLs (e.g.
xmldb:foo:/path/). The collection attribute specifies a base collection
for paths that do not start with "//".
The returned sources are traversable, modifiable and xml-izable.
This class is an import of Cocoon trunk XMLDBSourceFactory, to ensure connexion with a modified XMLDBSource.
| Field Summary | |
protected java.util.HashMap |
baseMap
An optional base collection for each of the drivers |
protected java.util.HashMap |
credentialMap
A Map containing the authentication credentials |
| Constructor Summary | |
XMLDBSourceFactory()
|
|
| Method Summary | |
void |
configure(Configuration conf)
Configure the instance and initialize XML:DB connections (load and register the drivers). |
Source |
getSource(java.lang.String location,
java.util.Map parameters)
Resolve the source |
void |
release(org.apache.excalibur.source.Source source)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.HashMap credentialMap
protected java.util.HashMap baseMap
| Constructor Detail |
public XMLDBSourceFactory()
| Method Detail |
public void configure(Configuration conf)
throws ConfigurationException
ConfigurationException
public Source getSource(java.lang.String location,
java.util.Map parameters)
throws java.net.MalformedURLException,
java.io.IOException
java.net.MalformedURLException
java.io.IOExceptionpublic void release(org.apache.excalibur.source.Source source)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||