Thanks guys.
However, if I use 2) what happens is that my Spring data binder
complains that there is no parameter called mode.
Maybe I'm not looking ok, i'll give it another try.
BTW, can I use groups in the regex? Like, capture some part of the
path and ignore the rest?
Cheers.
_______________________________________________
Melhores cumprimentos / Beir beannacht / Best regards
António Manuel dos Santos Mota
_______________________________________________
2009/2/26 Wilhelmsen Tor Iver <TorIverW_at_arrive.no>:
>> 2) @GET
>> @Path("/data/{key}")
>> String read(@PathParam("key")String key,
>> @QueryParam("mode")boolean mode);
>
> Use this variant and check whehter mode is null to differentiate between
> the scenarios you thought about using different methods for.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>