|
From: Christian S. <chr...@gm...> - 2008-11-14 17:20:23
|
Thanks! Works now with NO_CONTENT. 2008/11/14 Bill Burke <bb...@re...> > Well, HTTP 1.1 says that you are required to send 204, NO_CONTENT, but the > ClientFramework still has a bug there even if you do that. I just fixed it. > > Christian Sadilek wrote: > >> should mention it works if the return type on the client is >> Response.Status. So the question is should it also work with Response or >> ClientResponse<T> as return type in the client interface without manually >> setting the content type for DELETE, even if there is no response entity at >> all. It is just convenience. I would rather use ClientResponse<T> for >> methods in the client interface. >> >> Christian >> >> 2008/11/14 Christian Sadilek <chr...@gm... <mailto: >> chr...@gm...>> >> >> >> I checked out the latest version from trunk. It works now for GET, >> POST and PUT but I am still having problems with DELETE, but maybe I >> am doing something wrong. I have a method annotated with @DELETE >> that returns Response.ok().build(). The Client Framework then throws >> the following exception no matter if there are @Produce or @Consume >> annotations or not: org.jboss.resteasy.client.ClientResponseFailure: >> No Content-Type header specified >> >> Since DELETE in this case is not returning any response entity, >> should it be necessary to set a content-type at all? >> >> thanks, >> Christian >> >> 2008/11/11 Bill Burke <bb...@re... <mailto:bb...@re...>> >> >> Resteasy-144 Fixed. I should have done it earlier. >> >> Christian Sadilek wrote: >> >> >> I'd vote for >> https://jira.jboss.org/jira/browse/RESTEASY-144. I know >> there is a workaround by manually setting the content type >> but still it would be great to have that one fixed. >> >> Christian >> >> 2008/11/10 Bill Burke <bb...@re... >> <mailto:bb...@re...> <mailto:bb...@re... >> >> <mailto:bb...@re...>>> >> >> >> Anything quick you need fixed before the beta-9 release? >> Please say >> so now. >> >> >> -- >> Bill Burke >> JBoss, a division of Red Hat >> http://bill.burkecentral.com >> >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move >> Developer's >> challenge >> Build the coolest Linux based applications with Moblin >> SDK & win >> great prizes >> Grand prize is a trip for two to an Open Source event >> anywhere in >> the world >> >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> <http://moblin-contest.org/redirect.php?banner_id=100&url=/> >> < >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> <http://moblin-contest.org/redirect.php?banner_id=100&url=/>> >> _______________________________________________ >> Resteasy-developers mailing list >> Res...@li... >> <mailto:Res...@li...> >> <mailto:Res...@li... >> <mailto:Res...@li...>> >> >> >> https://lists.sourceforge.net/lists/listinfo/resteasy-developers >> >> >> >> -- Bill Burke >> JBoss, a division of Red Hat >> http://bill.burkecentral.com >> >> >> >> > -- > Bill Burke > JBoss, a division of Red Hat > http://bill.burkecentral.com > |