users@jersey.java.net

[Jersey] Re: Encoded attribute does not seems to work for all the param types.

From: Paul <nibin.cse_at_gmail.com>
Date: Wed, 15 Jun 2011 04:41:40 -0700 (PDT)

Hi,

In the JAX-RS specification, I found that encoded annotation is used to
disable automatic URI decoding of path, query, form and matrix params.

So I think encoded annotation is not applicable for header and cookie param
types.

Encoded annotation is also working fine with Path, Query and matrix params.

But the form parameters are not encoded even if I specify encoded annotation
for the argument.

When I checked the source,
"com.sun.jersey.server.impl.model.parameter.FormParamInjectableProvider", I
see that it is taking the decode in the constructor. But it is not used in
any place.

This is a bug in Jersey right?

I am using Jersey 1.6 for testing this feature.

Regards,
Paul

--
View this message in context: http://jersey.576304.n2.nabble.com/Encoded-attribute-does-not-seems-to-work-for-all-the-param-types-tp6473003p6478417.html
Sent from the Jersey mailing list archive at Nabble.com.