Use PathSegment for value that use matrix parameters
5.2. @PathParam and PathSegment The specification has a very simple abstraction for examining a fragment of the URI path being invoked on javax.ws.rs.core.PathSegment: public interface PathSegment { /** * Get the path segment. * * @return the path segment */ String getPath(); /** * Get a map of the matrix parameters associated with the path segment * @return the map of matrix parameters */ MultivaluedMap getMatrixParameters(); } You can have Resteasy inject a PathSegment instead of a value with your @PathParam. @GET @Path("/book/{id}") public String getBook(@PathParam("id") PathSegment id) {...} This is very useful if you have a bunch of @PathParams that use matrix parameters. The idea of matrix parameters is that they are an arbitrary set of name-value pairs embedded in a uri path segment. The PathSegment object gives you access to theese parameters. See also MatrixParam.