Michael Smith wrote:
Chris O'Connell wrote:

So, I have been playing with the WebdavResource, and it doesn't

> look like there is any way to use that class to do any of the > labeling/getting that we want to do. I can call the > 'reportMethod(...)' on the WebdavResource, and it will return > the path to each version of a file and I can then get that version, > but I can't figure out how do use the labeling.

I did this by subclassing WebdavResource. I added an instance variable
"private String label;", along with a getter and setter.

Then, I overrode getMethodData() to call
  method.setHeader("Label", label);
if label was non-null. Fairly simple.

Though apparently the whole Label thing is a deprecated feature of webdav...

No, not the LABEL feature per se, but the "Label" request header (it's incompatible with HTTP/1.1 because in some way it behaves like a variant, but then sometimes doesn't). See <http://www.webdav.org/deltav/protocol/rfc3253-issues-list.htm>, issue "8.3_ LABEL_HEADER".


Best regards, Julian

--
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to