@MatrixParam Annotation



The @MatrixParam annotation acts like @QueryParam, except it extracts the value of a URI matrix parameter (; is used as a delimiter
instead of ?).

@Path("/user")
@Produces(MediaType.APPLICATION_JSON)
public class UserRestService {

@GET
@Path("search")
public Items getUserByName(@MatrixParam("firstname") String firstname,
@MatrixParam("surname") String surname) {
// URI : /user/search;firstname=raj;surname=karna
}
}


Ref:  Beginning JavaEE7