If the number of parameters are fixed you can try
"/products/{productIdOne}/{productIdTwo}"
--
View this message in context:
http://cxf.547215.n5.nabble.com/JAX-RS-specifying-multiple-values-in-a-pathparam-tp555098p5727586.html
Sent from the cxf-user mailing list archive at Nabble.com.
ingle
path segment then ?
Cheers, Sergey
--
View this message in context:
http://www.nabble.com/JAX-RS-specifying-multiple-values-in-a-pathparam-tp17702725p17824890.html
Sent from the cxf-user mailing list archive at Nabble.com.
So may be you can use ',' as a separator between multiple params in a single
path segment then ?
Cheers, Sergey
-Original Message-
From: Tim Morrow 2 [mailto:[EMAIL PROTECTED]
Sent: 09 June 2008 20:36
To: users@cxf.apache.org
Subject: RE: JAX-RS specifying multiple values in a
>
> -Original Message-
> From: Tim Morrow 2 [mailto:[EMAIL PROTECTED]
> Sent: 09 June 2008 17:51
> To: users@cxf.apache.org
> Subject: Re: JAX-RS specifying multiple values in a pathparam
>
>
> Couple more points:
>
> * A properly escaped semi-colon (%3B)
r, but that didn't
> work. I tried a @MatrixParam, but as far as I can tell that is for
> name=value pairs.
>
> Any help or example would be greatly appreciated,
>
> Thanks,
>
> Tim
>
>
>
--
View this message in context:
http://ww
I tried a @MatrixParam, but as far as I can tell that is for
> name=value pairs.
>
> Any help or example would be greatly appreciated,
>
> Thanks,
>
> Tim
>
>
>
--
View this message in context:
http://www.nabble.com/JAX-RS-specifying-multiple-values-in-a-pathparam-tp17702725p17737052.html
Sent from the cxf-user mailing list archive at Nabble.com.
Tim Morrow 2 wrote:
Thanks for the suggestions. I could work with an upper limit of values rather
than an open ended list.
I tried @Path("/{id1};{id2};{id3}") with 3 @PathParam parameters but got a
"No operation matching request path ... is found" error.
I also tried keeping @Path("/{id}") mapp
e.
>
> I tried defining an @PathParam on an array parameter, but that didn't
> work. I tried a @MatrixParam, but as far as I can tell that is for
> name=value pairs.
>
> Any help or example would be greatly appreciated,
>
> Thanks,
>
> Tim
>
>
>
t;) in the function body
>
> I'm not sure JAX-RS provides for a way to have an open-ended list of
> parameters(Path, Matrix, etc) be mapped to an array.
> Still, it's an interesting idea, perhaps we can come up with some
> extension to handle such cases...
>
> Cheers
rrow 2" <[EMAIL PROTECTED]>
To:
Sent: Friday, June 06, 2008 11:52 PM
Subject: JAX-RS specifying multiple values in a pathparam
>
> I can easily invoke a resource passing in a single value, for example:
> /products/123
> Is it possible to bind a url like this:
> /prod
that didn't work.
I tried a @MatrixParam, but as far as I can tell that is for name=value
pairs.
Any help or example would be greatly appreciated,
Thanks,
Tim
--
View this message in context:
http://www.nabble.com/JAX-RS-specifying-multiple-values-in-a-pathparam-tp17702725p17702725.html
11 matches
Mail list logo