cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tong, Gary \(IDEAS\)" <>
Subject Possibly retarded question
Date Thu, 12 Mar 2009 14:19:14 GMT
Is there any value in allowing a method to respond to both GET and POST requests?

Currently something like:

class Foo {
  public String test() {...}

Only responds to @GET but does not respond to @POST.

I agree that conceptually, @GET and @POST should be completely different methods.  This is
just something random that came up when working on our application.  One of the clients that
we're using sends GET in some situations and POST in other situations.  As other libraries
generally handle GETs and POSTs interchangably, this wasn't an issue until we migrated this
to CXF.

In any case, it was easy enough to work around this, and I'm not even if I think it should
be changed.  Mostly just curious to hear the team's thoughts and see if this issue has come
up before.


NOTICE: If received in error, please destroy and notify sender. Sender does not intend to
waive confidentiality or privilege. Use of this email is prohibited when received in error.

  • Unnamed multipart/alternative (inline, 7-Bit, 0 bytes)
View raw message