W3C home > Mailing lists > Public > www-jigsaw@w3.org > September to October 1997

Re: http 'delete' method

From: Benoit Mahe <Benoit.Mahe@sophia.inria.fr>
Date: Tue, 16 Sep 1997 13:57:38 +0200
Message-Id: <199709161157.NAA21941@www43.inria.fr>
To: "Pere Mayol de Tord" <perem@ibm.net>
cc: <www-jigsaw@w3.org>, bmahe@www43.inria.fr
> Does Jigsaw Server suport http 'delete' method.
> In case it's not supported, willit be supported in the future??
> 
> 
> oooooooooooooooooooooo
>     Pere Mayol de Tord
>        perem@ibm.net
> oooooooooooooooooooooo 
> 
> 
> 

 There's no resource in Jigsaw wich implements delete method now.
 But, you can create a new resource class (extending FileResource for
 example) wich implements the http delete method, you just have to write
 the delete method.

 This method will probably looks like :

 public Reply delete(Request request) {
   try {
     getFile().delete();
   } catch (IOException ex) {
     return createDefaultReply(request, HTTP.??);
   }
   delete();
   return createDefaultReply(request, HTTP.OK);
 }

 But this seems to be not very secure, be careful.


- Benoît Mahé -------------------------------------------------------
World Wide Web Consortium                       bmahe@sophia.inria.fr 
Architecture domain - Jigsaw Team               tel : 04 93 65 79 89
---------------------------------------------------------------------
Received on Tuesday, 16 September 1997 08:01:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:26 GMT