This is what I ended up going with. I turned my parameter into a string and
went with a path like:
/products/123,456,789
and manually chopped it up and turned them into longs.
Thanks for the suggestions,
Tim
So may be you can use ',' as a separator between multiple params in a single
path
ers+in+URL+path+segments&page=1&refer=pzinulobvldtpil4
Tim
Sergey Beryozkin wrote:
>
> Hi
>
> Perhaps you can do (note the trailing '/')
>
> @Path("/{id1};{id2};{id3}/")
>
> And then just do /1;2;3/ ?
>
> Cheers, Sergey
>
>
ying "/{id}" and @Path(value="/{id}", limited=false) allows me to
pass "/123/456" as a string, but that isn't the look I'm going for.
I'm in over my head.
:)
Tim
Tim Morrow 2 wrote:
>
> I can easily invoke a resource passing in a single value, f
:)
Tim
Tim Morrow 2 wrote:
>
> I can easily invoke a resource passing in a single value, for example:
>/products/123
> Is it possible to bind a url like this:
>/products/123;456;789
> to a method signature? Basically I'd like to return multiple products at
> onc
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
I can easily invoke a resource passing in a single value, for example:
/products/123
Is it possible to bind a url like this:
/products/123;456;789
to a method signature? Basically I'd like to return multiple products at
once.
I tried defining an @PathParam on an array parameter, but that d