Seems you found the solution on your own. :-)
From: Jared Nedzel [mailto:jnedzel_at_broadinstitute.org]
Sent: Dienstag, 8. Februar 2011 18:34
To: users_at_jersey.java.net
Subject: [Jersey] Re: QueryParam when you don't know the param name at
compile time?
http://www.broadinstitute.org/foo?bar=snafu
I don't know at compile time that I'll have to process a key = "foo". I
believe that I've found a solution using like:
public Response getWebTool(@Context UriInfo uriInfo,
@Context SecurityContext securityContext) {
URI uri = uriInfo.getRequestUri();
logger.log(Level.FINE, "uri is: " + uri.toString());
MultivaluedMap<String, String> params =
uriInfo.getQueryParameters();
On 2/8/11 11:31 AM, Markus Karg wrote:
Can you make an example what the URL would look like so we can better
imagine what solution we can provide?
-----Original Message-----
From: Jared Nedzel [mailto:jnedzel_at_broadinstitute.org]
Sent: Dienstag, 8. Februar 2011 14:54
To: users_at_jersey.java.net
Subject: [Jersey] QueryParam when you don't know the param name at
compile time?
I need to process query parameters in my handler, but I don't know at
compile time what the name of the query parameter will be. How can I
accomplish this? It seems that the @QueryParam requires you to know
the
name of the query parameter at compile time.
Thanks,
--
Jared Nedzel
Cancer Genomics Informatics
Broad Institute
7 Cambridge Center
Cambridge, MA 02142
617-714-7510
jnedzel_at_broadinstitute.org
--
Jared Nedzel
Cancer Genomics Informatics
Broad Institute
7 Cambridge Center
Cambridge, MA 02142
617-714-7510
jnedzel_at_broadinstitute.org