|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.components.source.impl.XMLDBSourceFactory
public final class 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.apache.cocoon.components.source.impl.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.
| Field Summary | |
|---|---|
protected HashMap |
baseMap
An optional base collection for each of the drivers |
protected HashMap |
credentialMap
A Map containing the authentication credentials |
| Fields inherited from interface org.apache.excalibur.source.SourceFactory |
|---|
ROLE |
| Constructor Summary | |
|---|---|
XMLDBSourceFactory()
|
|
| Method Summary | |
|---|---|
void |
configure(Configuration conf)
Configure the instance and initialize XML:DB connections (load and register the drivers). |
Source |
getSource(String location,
Map parameters)
Resolve the source |
void |
release(Source source)
|
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected HashMap credentialMap
protected HashMap baseMap
| Constructor Detail |
|---|
public XMLDBSourceFactory()
| Method Detail |
|---|
public void configure(Configuration conf)
throws ConfigurationException
configure in interface ConfigurableConfigurationException
public Source getSource(String location,
Map parameters)
throws MalformedURLException,
IOException
getSource in interface SourceFactoryMalformedURLException
IOExceptionpublic void release(Source source)
release in interface SourceFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||