Hi!
Wouldn't it be easier to format your query like this:
GET /myservice?action=action1&action=action2&triggerName=triggerName1
and then have your method accept two QueryParams, one @QueryParam("action") List<String> and the other @QueryParam("triggerName") String ?
Moises
On Apr 9, 2010, at 5:11 AM, Franz Wong wrote:
> I would like to write a restful service which use @GET and @Consumes(MediaType.APPLICATION_JSON). I can only google example for @POST. I don't know whether I need to use @QueryParam for my parameters for GET method. If yes, how does the request line of the HTTP request become?
> [...]
> (In real environment, the request line is url encodeded)
>
> 1. GET /myservice?myRequest={"actionList":["action1","action2"],"triggerName":"triggerName1"} HTTP/1.1
> 2. GET /myservice?{"myRequest":{"actionList":["action1","action2"],"triggerName":"triggerName1"}} HTTP/1.1