Hi Benson

On Mon, Jan 24, 2011 at 5:37 PM, Benson Margulies <[email protected]>wrote:

> Consider a JAX-RS function with a signature like:
>
> /runRdfQuery/{query}/{name}
>
> I'm writing a client in Java using WebClient. Consider a string for
> 'query' containing a '/'. Should I just URLEncode and append? Or do I
> have to worry about multiple urlencoding at that point?
>

WebClient uses uriBuilder.buildFromEncoded() under the hood so no double
encoding will occur.
What happens though if you just do

/runRdfQuery/the/query/thename ?

It probably won't work as by default the single path template var won't
accept multiple explicit segments

Cheers, Sergey

Reply via email to