users@jersey.java.net

Re: [Jersey] encoding a jersey request

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Fri, 13 Feb 2009 10:47:08 +0100

On Feb 12, 2009, at 8:31 PM, paradisonoir wrote:

>
> so I think this would be fine?
> String url = "http://localhost:8080/employee";
> String employeeID;
> URI = UriBuilder.fromUri(Url).path(employeeID).build();
>
>

Yes:

   https://jsr311.dev.java.net/nonav/releases/1.0/javax/ws/rs/core/UriBuilder.html
#path(java.lang.String)

Paul.

>
>
> Do you mean doing
>
> resource.path(employeeID)....
>
> ?
>
> See JavaDoc of:
>
> https://jersey.dev.java.net/source/browse/*checkout*/jersey/tags/jersey-1.0.2/api/jersey/com/sun/jersey/api/client/WebResource.html
> #path(java.lang.String)
> /quote>
>
> --
> View this message in context: http://n2.nabble.com/encoding-a-jersey-request-tp2316130p2317051.html
> Sent from the Jersey mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>