You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by Christopher Lenz <cm...@gmx.de> on 2001/06/26 22:17:17 UTC

multi-status responses and MacroException

howdy,

if I understand the spec correctly, multistatus responses are allowed 
to group href's by status code in response to DELETE, MOVE & COPY 
requests on collections, thus helping to keep the response compact.

for example:

DELETE /foo/ HTTP/1.1
...

--->

...
<D:multistatus>
  <D:response>
    <D:href>/foo/bar1</D:href>
    <D:href>/foo/bar2</D:href>
    <D:status>HTTP/1.1 423 Locked</D:href>
  </D:response>
</D:multistatus>

this is currently not being done by the slide webdav-layer afaict.

one way to make this nice and simple would be: the MacroException 
class could store the exceptions categorized by their class, for 
example in a hash table using the classname as key, and lists of the 
actual exception instances as value. then there would be methods like   
  Enumeration enumerateExceptionsOfClass(String classname)
  Enumeration enumerateExceptionClasses()

so, does that seem reasonable or do you think the overhead would 
outweigh the benefits ?

-chris
________________________________________________________________
cmlenz@gmx.de