users@jersey.java.net

[Jersey] Path Parameters

From: Jim Beard <jimbeard_at_uoregon.edu>
Date: Fri, 1 Jul 2011 17:03:49 -0700

Is there an example of using Path Parameters somewhere?

 

I have the following code:

 

 

    WebResource webResource =
client.resource("https://r25test.uoregon.edu/r25ws/servlet/wrd/run");

 

    ClientResponse response =
webResource.path("r25user.xml?r25_username="+args[0]).delete(ClientRespo
nse.class);

 

 

And when it runs the ? converts to the hex encoded values, which is
throwing a 500 internal server error on the web service server.

 

The web service log shows:
REQUEST_URI=/r25ws/servlet/wrd/run/r25user.xml%3Fr25_username=Oscar

 

If I paste this in a browser I still get the 500 error, but if I replace
the %3F with a ? then it seems to work.

 

Thanks,

 

Jim Beard

Information Services

University of Oregon

(541) 346-1748