I thought that by using @Encoded in client the value would be automatically
encoded. For example:

consider this method:
@Path("{path}")
@GET
String getPath(@Encoded @PathParam("path") String path);

If I call call this method using a slashed value on the path param (
client.getPath("/value/with-slash")  ) I tought that the value would be
automatically encoded (from /value/with-slash to %2Fvalue%2Fwith-slash) so
that the slashes in the string would not be confused to the path uri
template.

Is there any way to inform CXF client that I want to encode a parameter?

Thanks,
Osvaldo Pina.

On Wed, Sep 17, 2014 at 5:55 PM, Sergey Beryozkin <[email protected]>
wrote:

> Hi
> On 17/09/14 20:22, Osvaldo Pina wrote:
>
>> Hi,
>>
>> I'm trying to use @Encoded in client jaxrs method parameters and it's no
>> working. Did I miss something or the feature is not avaliable to cxf jaxrs
>> clients?
>>
>>  What exactly does not work ? I do not recall doing anything around
> @Encoded on the client proxy side, its semantics on the server is that a
> given value does not have to kept as is, no attempt to decode should be
> made.
> Do you have something not encoded properly by the proxy ?
>
> Cheers, Sergey
>
>>
>> Thanks,
>> Osvaldo Pina.
>>
>>
>

Reply via email to