Hi @all,
I'm wondering about the selection strategy in CXF for different Query
Parameter. The documentation [1] does not cover this at all.
A simple system-test provided the impression to me, that CXF has no valid
selection strategy in place for handling different query parameters. Is this
assumption correct? Should I create a Jira ticket for a better support?
Here is my sample code. No matter which parameter have been provided within
my URL, only and always the first method was selected by CXF.
@Path("/paramTest")
public class MySimpleService {
@GET
public String getFoo(@QueryParam("foo") String foo){
return "foo:" + foo;
}
@GET
public String getFooBar(@QueryParam("foo") String foo,
@QueryParam("bar") String bar){
return "foo:" + foo + " bar:" + bar;
}
@GET
public String getTest(@QueryParam("test") String test){
return "test:" + test;
}
}
[1]
http://cxf.apache.org/docs/jax-rs-basics.html#JAX-RSBasics-Overviewoftheselectionalgorithm.
--
View this message in context:
http://cxf.547215.n5.nabble.com/REST-Method-selection-for-different-QueryParam-s-tp5719187.html
Sent from the cxf-user mailing list archive at Nabble.com.