|
From: Timothy L. <ma...@ya...> - 2013-06-04 20:59:16
|
I've developed a RestEasy resource with multiple methods all executed via HTTP GET and with very similar method signatures (See below for an example). The problem that I'm having is that I am attempting to get RestEasy to call the method with the Integer minute parameter using "?minutes=5" and RestEasy calls the method with fromDate and toDate params. Does RestEasy not handle these types of methods properly? I'm using RestEasy 2.2.0.GA.
Thanks,
Tim
Example:
@AddLinks
@LinkResource(value=Message.class)
@GET
@Produces("application/json")
List<Message> getMessages(@QueryParam("fromDate") String fromDate, @QueryParam("toDate") String toDate);
@AddLinks
@LinkResource(value=Message.class)
@GET
@Produces("application/json")
List<Message> getMessages(@QueryParam("minutes") Integer minutes);
@AddLinks
@LinkResource(value=Message.class)
@GET
@Produces("application/json")
List<Message> getMessages(@QueryParam("msgType") String msgType);
|