You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Chaitanya <ch...@pramati.com> on 2009/01/16 09:29:43 UTC
Suppport for Regular expressions in template params.
Hi,
JAX-RS specification says, template parameters can optionally specify the regular expression used to match their values. The default value matches any text and terminates at the end of a path segment but other values can be used to alter this behavior, e.g.:
@Path("widgets/{path:.+}")
public class Widget {
...
}
In the above example the Widget resource class will be matched for any request whose path starts with widgets and contains at least one more path segment; the value of the path parameter will be the request path following widgets. E.g. given the request path widgets/small/a the value of path would be small/a.
As of now CXF 2.2 snapshot does not support this, are you going to support it by final release?
Thank You.
Chaithanya.