You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by vg...@apache.org on 2003/10/29 15:26:09 UTC
cvs commit: cocoon-2.1/src/blocks/xmldb/java/org/apache/cocoon/components/source/impl XMLDBSource.java
vgritsenko 2003/10/29 06:26:09
Modified: src/blocks/xmldb/java/org/apache/cocoon/components/source/impl
XMLDBSource.java
Log:
Change prefix to 'xmldb' (should not break anything),
Add base attribute.
Revision Changes Path
1.7 +8 -8 cocoon-2.1/src/blocks/xmldb/java/org/apache/cocoon/components/source/impl/XMLDBSource.java
Index: XMLDBSource.java
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/blocks/xmldb/java/org/apache/cocoon/components/source/impl/XMLDBSource.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- XMLDBSource.java 25 Oct 2003 18:06:20 -0000 1.6
+++ XMLDBSource.java 29 Oct 2003 14:26:09 -0000 1.7
@@ -89,7 +89,7 @@
* @author <a href="mailto:vgritsenko@apache.org">Vadim Gritsenko</a>
* @version CVS $Id$
*/
-public class XMLDBSource extends AbstractLogEnabled
+public class XMLDBSource extends AbstractLogEnabled
implements Source, XMLizable {
/** The requested URL */
@@ -113,15 +113,15 @@
/** Static Strings used for XML Collection representation */
protected static final String URI = "http://apache.org/cocoon/xmldb/1.0";
- // FIXME (VG): Should not be this more generic? Say, "xmldb"?
- protected static final String PREFIX = "collection";
+
+ protected static final String PREFIX = "xmldb";
/** Root element <collections> */
protected static final String COLLECTIONS = "collections";
protected static final String QCOLLECTIONS = PREFIX + ":" + COLLECTIONS;
protected static final String RESOURCE_COUNT_ATTR = "resources";
protected static final String COLLECTION_COUNT_ATTR = "collections";
-// protected static final String COLLECTION_BASE_ATTR = "base";
+ protected static final String COLLECTION_BASE_ATTR = "base";
/** Element <collection> */
protected static final String COLLECTION = "collection";
@@ -159,7 +159,7 @@
SourceCredential credential,
String url,
ServiceManager manager) {
- this.enableLogging(logger);
+ enableLogging(logger);
this.manager = manager;
this.user = credential.getPrincipal();
@@ -268,8 +268,8 @@
RESOURCE_COUNT_ATTR, "CDATA", nresources);
attributes.addAttribute("", COLLECTION_COUNT_ATTR,
COLLECTION_COUNT_ATTR, "CDATA", ncollections);
-// attributes.addAttribute("", COLLECTION_BASE_ATTR,
-// COLLECTION_BASE_ATTR, "CDATA", url);
+ attributes.addAttribute("", COLLECTION_BASE_ATTR,
+ COLLECTION_BASE_ATTR, "CDATA", url);
handler.startDocument();
handler.startPrefixMapping(PREFIX, URI);