On Mon, Sep 14, 2009 at 10:46 AM, Marc Speck <[email protected]> wrote:
> I'm trying to find all options for directing requests to different servlets.
> I was glad if somebody could confirm that the following use cases are not
> covered:
>
> 1. A wildcard for the name of the first node in the path, e.g. @scr.property
> name="sling.servlet.paths" value="\/.*?\/a\/b"

Not supported.

> 2. jcr:mixinTypes are ignored for servlet resolving.

True.

> 3. A RegExp for selectors or extensions. For example, I currently have the
> version in the path like /foo/bar.version=12.xml, so @scr.property
> name="sling.servlet.selectors" value="version=.+"

Not supported.

As a general rule for servlet registration, each servlet is registered
to one or more paths in the virtual resource tree.
The path must be an actual resolvable path, i.e. it cannot consist of
regex'es (as this could possibly yield an unlimited number of paths).

However, you might be able to write your own ResourceProvider to
handle those cases.

-- 
Vidar S. Ramdal <[email protected]> - http://www.idium.no
Sommerrogata 13-15, N-0255 Oslo, Norway
+ 47 22 00 84 00 / +47 21 531941, ext 2070

Reply via email to