Please ignore,
I have written a virtual resource resolver does the job without extending Sling core URL processing.
Ian


On 22 May 2009, at 16:26, Ian Boston wrote:

If I wanted to perform dynamic URL rewriting internally, would /var/ map and org.apache.sling.jcr.resource.internal.helper.MapEntry.replace be the right place to do it?

eg
/x/y/z/(.?*)$
with a replace string of
/x/y/z/$function(name,$1)

where $function maps to a function of name "name" taking parameters Object[] {$1}

The functions either being OSGi services or pre-populated.

The use case I am trying to cover is where we know we have a very large number of items that will appear in a folder,
eg 200K users home folders all the the same level.
/~ieb

might be rewritten as
/~(.*)$
/home/$function(sha1hashpath,$1)

WDYT?

Ian

Reply via email to