Save This Page
Home » cocoon-2.1.11-src » org.apache » cocoon » components » source » [javadoc | source]
org.apache.cocoon.components.source
public class: XMLDBSource [javadoc | source]
java.lang.Object
   org.apache.cocoon.components.source.AbstractSAXSource
      org.apache.cocoon.components.source.XMLDBSource

All Implemented Interfaces:
    Source

This class implements the xmldb:// pseudo-protocol and allows to get XML content from an XML:DB enabled XML database.
Field Summary
protected  String url    The requested URL 
protected  String query    The part of URL after # sign 
protected  String systemId    The System ID 
protected static final  String URI    Static Strings used for XML Collection representation 
protected static final  String PREFIX     
protected static final  String COLLECTIONS    Root element <collections> 
protected static final  String QCOLLECTIONS     
protected static final  String RESOURCE_COUNT_ATTR     
protected static final  String COLLECTION_COUNT_ATTR     
protected static final  String COLLECTION    Element <collection> 
protected static final  String QCOLLECTION     
protected static final  String RESOURCE    Element <resource> 
protected static final  String QRESOURCE     
protected static final  String NAME_ATTR     
protected static final  String RESULTSET    Root element <results> 
protected static final  String QRESULTSET     
protected static final  String QUERY_ATTR     
protected static final  String RESULTS_COUNT_ATTR     
protected static final  String RESULT    Element <result> 
protected static final  String QRESULT     
protected static final  String RESULT_DOCID_ATTR     
protected static final  String RESULT_ID_ATTR     
protected static final  String CDATA     
Fields inherited from org.apache.cocoon.components.source.AbstractSAXSource:
log,  manager
Constructor:
 public XMLDBSource(Environment environment,
    ComponentManager manager,
    Logger logger,
    String url) 
    The constructor.
    Parameters:
    environment - the Cocoon Environment.
    url - the URL being queried.
    driver - the XML:DB driver class name.
Method from org.apache.cocoon.components.source.XMLDBSource Summary:
getSystemId,   recycle,   toSAX
Methods from org.apache.cocoon.components.source.AbstractSAXSource:
getContentLength,   getInputSource,   getInputStream,   getLastModified,   getSystemId,   toSAX
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cocoon.components.source.XMLDBSource Detail:
 public String getSystemId() 
 public  void recycle() 
 public  void toSAX(ContentHandler handler) throws SAXException, ProcessingException 
    Stream SAX events to a given ContentHandler. If the requested resource is a collection, build an XML view of it.