You can get it from UriInfo : uriInfo.getRequestUri().getQuery()

cheers, Sergey

How would I obtain the full query string, via annotations (in a JAX-RS setting)?

I have a resource of the form:

/search?CRITERIA-GOES-HERE

(The criteria is in a domain-specific language.)

I don't really want to clutter this up to be:

/search?query=CRITERIA-GOES-HERE

Rather, I'd like to just pick up the whole query string, and use it.

Can this be done? The docs have examples of pulling out query parameters by name, but I don't really have a name here -- I just want the whole string.

Thanks!

Reply via email to