I am trying to use the MatrixParam annotation to grab the value out of a matrix parameter, but just doesn't work for me. I must be missing something. Here is my resource class:
@UriTemplate("/users")
public class UsersResource {
public UsersResource() {
}
@HttpMethod
public String getUsers(@MatrixParam("fn") String firstName) {
return "first-name: '" + firstName + "'";
}
}
When I tried
http://host:8080/jersey/users;fn=Mike and I am expecting "first-name: 'Mike'", but kept getting "first-name: 'null'".
Thanks in advance,
Hien