You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Son Singh <it...@yahoo.com> on 2003/01/15 18:39:21 UTC
Help needed for Labelling.
Hi,
I am trying to get the document based on a Label.
I have document present with label as "Production".
In order to get the history, I am using ReportMethod of WebDavResource.
Parameters passed to the report Method are
httpURL = http://localhost:8080/slide
propertyNames = Vector containing D:version-history
HistUrls = vector containing /history/Production.
When I execute the method, I get status as
REPORT, 409 "Conflict",
Can any one point me what I may be doing wrong ?
Here is the code snippest.
HttpUrl httpUrl = new HttpUrl("http://localhost:8080/slide");
WebdavResource webdavResource = new WebdavResource(httpURL);
Vector properties = new Vector();
properties.add("D:version-history");
Vector histUrls = new Vector();
histUrls.add("/history/Production");
Enumeration enum = webdavResource.reportMethod(httpURL, properties,
histUrls, 1);
System.out.println("Enum " + enum);
while (enum.hasMoreElements())
{
System.out.println("Enum " + enum.nextElement());
}
Thanks in advance,
Son.
---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now