Re: JAX-RS: Mapping @MatrixParam("l") ";l=a,b,c" to List(3) using ParamConverterProvider doesn't work - how do I do it properly?

2016-10-07 Thread Christian Balzer
No, I've been asked not to change the existing REST interface when changing the service. No worries, though. :) On Thu, Oct 6, 2016 at 4:00 PM, Sergey Beryozkin wrote: > May be you can do /a;from=10;till=90 or > /a;range=10;range=90 > > In the former case you'd have > >

Re: JAX-RS: Mapping @MatrixParam("l") ";l=a,b,c" to List(3) using ParamConverterProvider doesn't work - how do I do it properly?

2016-10-06 Thread Sergey Beryozkin
May be you can do /a;from=10;till=90 or /a;range=10;range=90 In the former case you'd have @MatrixParam("from") String @MatrixParam("till") String in the latter @MatrixParam("range") List Sergey On 06/10/16 15:27, Christian Balzer wrote: I wanted to avoid having to do

Re: JAX-RS: Mapping @MatrixParam("l") ";l=a,b,c" to List(3) using ParamConverterProvider doesn't work - how do I do it properly?

2016-10-06 Thread Christian Balzer
I wanted to avoid having to do matrixParams.getList().get(0) when all I wanted was matrixParams.get(0)... :) That's the only reason, really... I thought if I have to convert partially in my class, I can just do all of the conversion in my class, and not use cxf's facility at all. And I thought it

Re: JAX-RS: Mapping @MatrixParam("l") ";l=a,b,c" to List(3) using ParamConverterProvider doesn't work - how do I do it properly?

2016-10-06 Thread Sergey Beryozkin
Hi, why would you not have class MatrixParams { List list; } @MatrixParam("a") MatrixParams Sergey On 06/10/16 14:23, Christian Balzer wrote: Hello, Well, you just pointed out that the converters are only supposed to work on an individual element of a collection, and cxf' code is

Re: JAX-RS: Mapping @MatrixParam("l") ";l=a,b,c" to List(3) using ParamConverterProvider doesn't work - how do I do it properly?

2016-10-06 Thread Christian Balzer
Hello, Well, you just pointed out that the converters are only supposed to work on an individual element of a collection, and cxf' code is looking at the param type to see if it is dealing with a collection target type (which it will create at runtime, as you pointed out), to which it needs to

Re: JAX-RS: Mapping @MatrixParam("l") ";l=a,b,c" to List(3) using ParamConverterProvider doesn't work - how do I do it properly?

2016-10-06 Thread Sergey Beryozkin
Hi Looks like a linking issue, Sergey On 06/10/16 13:24, Christian Balzer wrote: Hi all, So, I played around a bit more, and I now have a semi-working solution. Semi-working, because I do get a List of enums back, which is what I was actually after. Not fully working, because it now blows up

Re: JAX-RS: Mapping @MatrixParam("l") ";l=a,b,c" to List(3) using ParamConverterProvider doesn't work - how do I do it properly?

2016-10-06 Thread Sergey Beryozkin
Hi Christian ParamConverterProvider can be used to convert an individual collection value. This is because the JAX-RS runtime has a long time support for List/Set collections of the input parameters - the individual parameter is created somehow but the collection container is created by the

Re: JAX-RS: Mapping @MatrixParam("l") ";l=a,b,c" to List(3) using ParamConverterProvider doesn't work - how do I do it properly?

2016-10-06 Thread Christian Balzer
Hi all, So, I played around a bit more, and I now have a semi-working solution. Semi-working, because I do get a List of enums back, which is what I was actually after. Not fully working, because it now blows up in the bowels of cxf (3.1.6). Here is the mehtod signature - as a reminder, I'm

JAX-RS: Mapping @MatrixParam("l") ";l=a,b,c" to List(3) using ParamConverterProvider doesn't work - how do I do it properly?

2016-10-05 Thread Christian Balzer
Hi all, We are using cxf with Spring at work, and I have a newbie question... This is my method signature: @GET @Path("foo") public Response foo(@MatrixParam("l") List myList) { >From that, I want to get a list back with the initial input String (to my matrix parameter l) being split into list