users@jersey.java.net

Re: [Jersey] Re: Comma Separated Lists in Jersey

From: Paul Sandoz <Paul.Sandoz_at_oracle.com>
Date: Wed, 6 Oct 2010 11:39:43 +0200

On Oct 5, 2010, at 7:40 PM, Mike K wrote:

>
> This is perfect. Thank you, Paul.
> Two questions:
> I imagine if I implement StringReaderProvider<String> I will be
> breaking
> something, right?

Yes, because it would override the existing support for String, but
note that the String type is unsuitable for representing a comma
separate list.


> Are there examples of StringReaderProvider implementations?
>

Only internally within the code:

https://fisheye4.atlassian.com/browse/jersey/trunk/jersey/jersey-server/src/main/java/com/sun/jersey/server/impl/model/parameter/multivalued/StringReaderProviders.java?r=HEAD

Paul.