users@jersey.java.net

Re: Get all *parameters on, both, Properties or Map<String, String>

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Wed, 09 Jan 2008 12:47:39 +0100

Jose Antonio Illescas del Olmo wrote:
>
> with current-empty-value annotation
>
> public void get(@*URIParam("")* Properties params)
>
> or with new non-value annotations
>
> public void get(@*AllURIParam**s* Map<String, String> params)
>

You can do this with the UriInfo class [1]:

      public void get(@HttpContext UriInfo uriInfo) {
          MultivaluedMap<String, String> params =
              uriInfo.getTemplateParameters();
      }

which can also be used to obtain all the query parameters. You can use
the HttpHeader class for obtaining all the HTTP request headers.

Does that work for you?

Paul.

[1]
https://jsr311.dev.java.net/nonav/releases/0.5/javax/ws/rs/core/UriInfo.html

-- 
| ? + ? = To question
----------------\
    Paul Sandoz
         x38109
+33-4-76188109