users@jsr311.java.net

Re: JAX-RS: rival _at_Path with reg exps

From: Stephan Koops <Stephan.Koops_at_web.de>
Date: Fri, 04 Jul 2008 12:59:43 +0200

Hi James,
> Without any priority mechanism an author can still ensure
> {number:[0-9]+}
> gets all numeric paths before
> {varname}
> gets everything else, by replacing it with
> {varname:[^/]*[^0-9/][^/]*}
> (which requires at least one non-digit).
> So it does “allows complex things” without a priority attribute.
Yes, but I think this is not very easy. And if you update the first reg
exp, you have also to alter the other one.
> > sort paths with explicit regexs ahead of those using the default
>
> Good idea (as a secondary key, after number of literals).
Yes, this is a good idea !

best regards
  Stephan