Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1 Matrix Parameters

open
nobody
None
5
2008-04-02
2008-04-02
No

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

Discussion

  • java file

     
    Attachments