users@jersey.java.net

[Jersey] encoding a jersey request

From: paradisonoir <pourteymour_at_gmail.com>
Date: Thu, 12 Feb 2009 09:15:12 -0800 (PST)

Hi,

Assuming my url address, I want to add/encode my employeeID to this address,
so I have encoded
http://localhost:8080/employee/{sessionID} =>value of employee ID

String url = "http://localhost:8080/employee";
String employeeID;

URI destination = UriBuilder.fromUri(Url).buildFromEncoded(employeeID);

Is there any other way to encode my request?

what if I want to add /employee as my path? So I don't need to hard coded in
my url.


thanks,
-- 
View this message in context: http://n2.nabble.com/encoding-a-jersey-request-tp2316130p2316130.html
Sent from the Jersey mailing list archive at Nabble.com.