org.apache.cocoon.components.source
Class XMLDBSourceFactory

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLoggable
        |
        +--org.apache.cocoon.components.source.XMLDBSourceFactory
All Implemented Interfaces:
org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.Loggable, SourceFactory, org.apache.avalon.framework.thread.ThreadSafe

public final class XMLDBSourceFactory
extends org.apache.avalon.framework.logger.AbstractLoggable
implements SourceFactory, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.component.Composable

This class implements the xmldb:// pseudo-protocol and allows to get XML content from an XML:DB enabled XML database.

Version:
CVS $Id: XMLDBSourceFactory.java,v 1.4.2.1 2002/08/03 16:44:13 vgritsenko Exp $
Author:
Gianugo Rabellino

Field Summary
protected  java.lang.String driver
          The driver implementation class
protected  java.util.HashMap driverMap
          A Map containing the driver list
protected  org.apache.avalon.framework.component.ComponentManager m_manager
          The driver implementation class
 
Constructor Summary
XMLDBSourceFactory()
           
 
Method Summary
 void compose(org.apache.avalon.framework.component.ComponentManager cm)
          Compose this Composable object.
 void configure(org.apache.avalon.framework.configuration.Configuration conf)
          Configure the instance.
 Source getSource(Environment environment, java.lang.String location)
          Resolve the source
 Source getSource(Environment environment, java.net.URL base, java.lang.String location)
          Resolve the source
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable
getLogger, setLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

driver

protected java.lang.String driver
The driver implementation class

m_manager

protected org.apache.avalon.framework.component.ComponentManager m_manager
The driver implementation class

driverMap

protected java.util.HashMap driverMap
A Map containing the driver list
Constructor Detail

XMLDBSourceFactory

public XMLDBSourceFactory()
Method Detail

configure

public void configure(org.apache.avalon.framework.configuration.Configuration conf)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Configure the instance.
Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable

compose

public void compose(org.apache.avalon.framework.component.ComponentManager cm)
Compose this Composable object. We need to pass on the ComponentManager to the actual Source.
Specified by:
compose in interface org.apache.avalon.framework.component.Composable

getSource

public Source getSource(Environment environment,
                        java.lang.String location)
                 throws ProcessingException,
                        java.io.IOException,
                        java.net.MalformedURLException
Resolve the source
Specified by:
getSource in interface SourceFactory
Following copied from interface: org.apache.cocoon.components.source.SourceFactory
Parameters:
environment - This is optional.

getSource

public Source getSource(Environment environment,
                        java.net.URL base,
                        java.lang.String location)
                 throws ProcessingException,
                        java.io.IOException,
                        java.net.MalformedURLException
Resolve the source
Specified by:
getSource in interface SourceFactory
Following copied from interface: org.apache.cocoon.components.source.SourceFactory
Parameters:
environment - This is optional.


Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.