Dynamic URL rewriting as per discussion on list.
------------------------------------------------

                 Key: SLING-986
                 URL: https://issues.apache.org/jira/browse/SLING-986
             Project: Sling
          Issue Type: New Feature
          Components: Engine
    Affects Versions: JCR Resource 2.0.6
            Reporter: Ian Boston
         Attachments: SLING-251.patch

After discussion on list http://markmail.org/thread/yvm3xoqtmpvrkijk

The patch to follow creates the ability to have nodes of the following form
 /etc/map/http/myhost/~
          -> sling:mapper=(prefix='~')

Where the value of the sling:mapper property is a valid OSGi Filter and locates 
a Service implementation of type MappingResolver.

Where the request path matches pattern, the service will be used to resolve the 
request path to an internal path and to map the internal path to a url.

The patch that follows is a first pass, that passes existing tests, but does 
not have unit test coverage. 
One area of concern is the extent to which the bundle context needs to be 
propagated to facilitate a ServiceTracker.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to