[jax-rs-spec users] Mismatch with path parameter handling

From: Thomas Koch <>
Date: Fri, 16 Mar 2012 17:57:32 +0100


I've an application with uris like

Now when handling the GET on collection, I want to build URIs to the entries.
In an ideal world I'd do:

  newParams = Map.of("entry", List.of(entryId))

                 MapsUtil.merge(newParams, uriInfo.getPathParameters())

Unfortunately the map returned from getPathParameters() is not in the format
required by buildFromMap(). It would be good to have a kind of

While I'm on it: I'm using a PathParameters class with a getFirst() method.
That's a handy way to access path parameters via Dependency Injection. It
would also be nice to have such a class in JAX-RS, maybe enhanced with
getFirst(name, default).


Thomas Koch,