IIRC, this isn't allowed by the spec.  We used to support it.

On 12/29/11 8:51 AM, David Fehr wrote:
> Hi all,
>
> maybe this question is stupid, but maybe there is an elegant way:
>
> Is it possible to annotate one method with @GET and @POST, while
> processing the parameters as previous with @FormParam and @QueryParam.
> The solution could look like this:
>
> @POST@GET
> @Path("/openchat")
> public String echo(@QueryParam@FormParam String message) {
>        return message;
> }
>
> Probably quite silly, but maybe there is a way. Otherwise i would to
> duplicate the method and delegate to my actual service.
> I would need this for supporting JSON and JSONP...
>
> Regards,
> David
>
>
> ------------------------------------------------------------------------------
> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
> infrastructure or vast IT resources to deliver seamless, secure access to
> virtual desktops. With this all-in-one solution, easily deploy virtual
> desktops for less than the cost of PCs and save 60% on VDI infrastructure
> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
>
>
>
> _______________________________________________
> Resteasy-users mailing list
> Resteasy-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/resteasy-users

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users

Reply via email to