[Prev][Next][Index][Thread]
Re: http 'delete' method
> 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
---------------------------------------------------------------------
References: