juergen 02/03/18 23:32:35
Modified: src/webdav/server/org/apache/slide/webdav/method
ReportMethod.java
Log:
Adapted to changes in VersioningHelper.
Replaced new constants by already existing ones.
Revision Changes Path
1.9 +9 -35
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.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- ReportMethod.java 18 Mar 2002 07:29:58 -0000 1.8
+++ ReportMethod.java 19 Mar 2002 07:32:35 -0000 1.9
@@ -1,7 +1,7 @@
/*
- * $Header:
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/ReportMethod.java,v
1.8 2002/03/18 07:29:58 juergen Exp $
- * $Revision: 1.8 $
- * $Date: 2002/03/18 07:29:58 $
+ * $Header:
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/ReportMethod.java,v
1.9 2002/03/19 07:32:35 juergen Exp $
+ * $Revision: 1.9 $
+ * $Date: 2002/03/19 07:32:35 $
*
* ====================================================================
*
@@ -145,7 +145,7 @@
/**
* An implementation of the DeltaV <code>REPORT</code> method.
*
- * @version $Revision: 1.8 $
+ * @version $Revision: 1.9 $
*
* @author <a href="mailto:[EMAIL PROTECTED]">Ralf Stuckert</a>
*/
@@ -177,16 +177,6 @@
public static final String PROPERTY_LIST = "propertylist";
/**
- * String constant for <code>property</code>.
- */
- public static final String PROPERTY = "property";
-
- /**
- * String constant for <code>prop</code>.
- */
- public static final String PROP_ELEMENT = "prop";
-
- /**
* String constant for <code>name</code>.
*/
public static final String PARAM_NAME = "name";
@@ -659,16 +649,16 @@
// get acl
// create virtuel ACL property object
- Element aclproperty = new Element(PROPERTY,DEFAULT_NAMESPACE);
- aclproperty.addAttribute(PARAM_NAME,P_ACL);
- Element prop = new Element(PROP_ELEMENT,DEFAULT_NAMESPACE);
+ Element aclproperty = new Element(E_PROPERTY,DEFAULT_NAMESPACE);
+ aclproperty.setAttribute(PARAM_NAME,P_ACL);
+ Element prop = new Element(E_PROP,DEFAULT_NAMESPACE);
prop.addContent(aclproperty);
RequestedPropertiesImpl reqProperties = new RequestedPropertiesImpl(prop);
// get NodeRevisionDescriptor
try {
VersioningHelper vHelp = VersioningHelper.getVersioningHelper(
- slideToken, token, req, resp, getRequestContent(), getConfig() );
+ slideToken, token, req, resp, getConfig() );
if( !Configuration.useVersionControl() ) {
revisionDescriptors =
@@ -724,7 +714,7 @@
Iterator iterator = propstatList.iterator();
aclpropstat = ((Element)iterator.next());
- aclprops = aclpropstat.getChild(PROP_ELEMENT,
Namespace.getNamespace(DEFAULT_NAMESPACE));
+ aclprops = aclpropstat.getChild(E_PROP,
Namespace.getNamespace(DEFAULT_NAMESPACE));
if (aclprops != null) {
acl = aclprops.getChild(P_ACL,
Namespace.getNamespace(DEFAULT_NAMESPACE));
@@ -927,22 +917,6 @@
if (resourcePath == null) {
resourcePath = "/";
}
- }
-
- /**
- * Returns the request content (XML) Document.
- *
- * @return the request content (XML) Document.
- */
- protected Document getRequestContent() {
- return requestContentDocument;
- }
-
- /**
- * Retrieves the request content (XML) Document.
- */
- protected void retrieveRequestContent() throws ParserConfigurationException,
IOException, SAXException{
- requestContentDocument = new DOMBuilder().build(parseRequestContent());
}
/**
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>