juergen 02/03/11 23:19:12
Modified: src/webdav/server/org/apache/slide/webdav/method
ReportMethod.java
Log:
Use XMLValue to create <href> element llist.
(ralf)
Revision Changes Path
1.6 +7 -22
jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/ReportMethod.java
Index: ReportMethod.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/ReportMethod.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- ReportMethod.java 8 Mar 2002 12:03:09 -0000 1.5
+++ ReportMethod.java 12 Mar 2002 07:19:12 -0000 1.6
@@ -1,7 +1,7 @@
/*
- * $Header:
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/ReportMethod.java,v
1.5 2002/03/08 12:03:09 juergen Exp $
- * $Revision: 1.5 $
- * $Date: 2002/03/08 12:03:09 $
+ * $Header:
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/ReportMethod.java,v
1.6 2002/03/12 07:19:12 juergen Exp $
+ * $Revision: 1.6 $
+ * $Date: 2002/03/12 07:19:12 $
*
* ====================================================================
*
@@ -127,6 +127,7 @@
import org.apache.slide.webdav.util.PropertyRetrieverImpl;
import org.apache.slide.webdav.util.UriHandler;
import org.apache.slide.webdav.util.WebdavUtils;
+import org.apache.slide.webdav.util.XMLValue;
import org.jdom.Element;
import org.jdom.Document;
@@ -141,7 +142,7 @@
/**
* An implementation of the DeltaV <code>REPORT</code> method.
*
- * @version $Revision: 1.5 $
+ * @version $Revision: 1.6 $
*
* @author <a href="mailto:[EMAIL PROTECTED]">Ralf Stuckert</a>
*/
@@ -168,16 +169,6 @@
public static final String HTTP_VERSION = "HTTP/1.1";
/**
- * String constant for <code><href-list></code>.
- */
- public static final String HREF_LIST_START_TAG = "<href-list>";
-
- /**
- * String constant for <code></href-list></code>.
- */
- public static final String HREF_LIST_END_TAG = "</href-list>";
-
- /**
* String constant for <code>propertylist</code>.
*/
public static final String PROPERTY_LIST = "propertylist";
@@ -496,14 +487,8 @@
NodeProperty versionSetProperty =
historyDescriptor.getProperty(P_VERSION_SET);
if ( (versionSetProperty != null) && (versionSetProperty.getValue() !=
null) ) {
- StringBuffer buffer = new
StringBuffer(((String)versionSetProperty.getValue()).length() +
-
HREF_LIST_START_TAG.length() + HREF_LIST_END_TAG.length());
- buffer.append(HREF_LIST_START_TAG);
- buffer.append(versionSetProperty.getValue());
- buffer.append(HREF_LIST_END_TAG);
- Document document = getSAXBuilder().build(new
StringReader(buffer.toString()));
- List hrefList = document.getRootElement().getChildren(E_HREF);
- Iterator hrefIterator = hrefList.iterator();
+ XMLValue xmlValue = new
XMLValue(versionSetProperty.getValue().toString());
+ Iterator hrefIterator = xmlValue.iterator();
NodeRevisionDescriptor currentRevisionDescriptor = null;
NodeRevisionDescriptors currentRevisionDescriptors = null;
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>