Use the @MatrixParam annotation
The @MatrixParam annotation allows you to inject URI matrix paramters into your method invocation @GET public String getBook(@MatrixParam("name") String name, @MatrixParam("author") String author) {...} There is one big problem with @MatrixParam that the current version of the specification does not resolve. What if the same MatrixParam exists twice in different path segments? In this case, right now, its probably better to use PathParam combined with PathSegment.