- From: Benoit Mahe <Benoit.Mahe@sophia.inria.fr>
- Date: Tue, 16 Sep 1997 13:57:38 +0200
- 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 UTC