I am having some issues getting matrix parameters. I have the following method set up...
@GET
@Path("/{id}")
@ProduceMime("text/plain")
public String getLocationById(@PathParam("id")
PathSegment id) {
return "Location of Id: " + id.getMatrixParameters() + ":" + id.getPath();
}
Test URL:
GET http://localhost:8080/jsr311/Location/lat=1;long=2
Response:
Location of Id: {}:lat=1
It seems like the ';' is cutting off the URL at that point.
- Brandon
java file