| From | Sent On | Attachments |
|---|---|---|
| Vidar S. Ramdal (JIRA) | Feb 15, 2008 7:27 am | |
| Felix Meschberger (JIRA) | Feb 15, 2008 7:35 am | |
| Bertrand Delacretaz (JIRA) | Feb 15, 2008 2:23 pm | |
| eric...@acquitygroup.com | Feb 15, 2008 5:52 pm | |
| Felix Meschberger | Feb 16, 2008 2:09 am | |
| Tobias Bocanegra (JIRA) | Feb 17, 2008 9:14 am | |
| Vidar S. Ramdal (JIRA) | Feb 18, 2008 12:24 am | |
| Vidar S. Ramdal (JIRA) | Feb 18, 2008 12:26 am | |
| eric marts (JIRA) | Feb 18, 2008 3:06 pm | |
| Vidar S. Ramdal (JIRA) | Mar 26, 2008 3:09 am | |
| Bertrand Delacretaz (JIRA) | Mar 26, 2008 3:19 am | |
| Carsten Ziegeler (JIRA) | Apr 30, 2008 11:39 am | |
| Felix Meschberger (JIRA) | Nov 20, 2008 3:06 am | |
| Felix Meschberger (JIRA) | Nov 20, 2008 3:12 am | |
| Felix Meschberger (JIRA) | Nov 20, 2008 3:14 am | |
| Vidar S. Ramdal (JIRA) | Nov 20, 2008 3:36 am | |
| Felix Meschberger (JIRA) | Nov 20, 2008 4:02 am | |
| Vidar S. Ramdal (JIRA) | Nov 20, 2008 4:14 am | |
| Alexander Klimetschek | Nov 20, 2008 4:35 am | |
| Felix Meschberger (JIRA) | Nov 20, 2008 5:36 am | |
| Bertrand Delacretaz (JIRA) | Nov 20, 2008 5:50 am | |
| Alexander Klimetschek (JIRA) | Nov 20, 2008 7:14 am | |
| Bertrand Delacretaz | Nov 20, 2008 8:56 am | |
| Vidar S. Ramdal (JIRA) | Nov 20, 2008 9:16 am | |
| Vidar S. Ramdal (JIRA) | Nov 20, 2008 9:20 am | |
| Bertrand Delacretaz (JIRA) | Nov 20, 2008 9:26 am | |
| Felix Meschberger | Nov 20, 2008 11:16 pm | |
| Felix Meschberger (JIRA) | Nov 20, 2008 11:24 pm | |
| Alexander Klimetschek | Nov 21, 2008 12:49 am | |
| Vidar Ramdal | Nov 21, 2008 1:03 am | |
| Alexander Klimetschek | Nov 21, 2008 1:41 am | |
| Bertrand Delacretaz (JIRA) | Nov 21, 2008 3:14 am | |
| Felix Meschberger (JIRA) | Nov 21, 2008 3:28 am | |
| Felix Meschberger | Nov 21, 2008 3:33 am | |
| Alexander Klimetschek | Nov 21, 2008 3:36 am | |
| Felix Meschberger | Nov 21, 2008 3:46 am | |
| Felix Meschberger | Nov 21, 2008 3:51 am | |
| Alexander Klimetschek | Nov 21, 2008 5:24 am | |
| Vidar Ramdal | Nov 21, 2008 7:21 am | |
| Alexander Klimetschek | Nov 21, 2008 8:47 am | |
| Roy T. Fielding | Nov 21, 2008 4:11 pm | |
| David Nuescheler | Nov 22, 2008 3:49 am | |
| Felix Meschberger | Nov 23, 2008 10:30 am | |
| Felix Meschberger | Nov 23, 2008 1:41 pm | |
| Vidar Ramdal | Nov 24, 2008 12:59 am | |
| Felix Meschberger | Nov 24, 2008 1:31 am | |
| Bertrand Delacretaz | Nov 24, 2008 1:37 am | |
| Bertrand Delacretaz | Nov 24, 2008 1:39 am | |
| Felix Meschberger | Nov 24, 2008 5:06 am | |
| Felix Meschberger | Nov 24, 2008 5:09 am | |
| Felix Meschberger (JIRA) | Nov 25, 2008 3:29 pm | |
| Felix Meschberger (JIRA) | Nov 25, 2008 4:07 pm | |
| Roy T. Fielding | Nov 26, 2008 2:45 pm | |
| Roy T. Fielding | Nov 26, 2008 2:54 pm | |
| Roy T. Fielding | Nov 26, 2008 3:04 pm | |
| Felix Meschberger | Nov 27, 2008 4:25 am | |
| Felix Meschberger | Nov 27, 2008 4:31 am | |
| Roy T. Fielding | Dec 3, 2008 3:35 pm | |
| Felix Meschberger (JIRA) | Jan 26, 2009 4:31 am | |
| Vidar S. Ramdal (JIRA) | Jan 27, 2009 4:36 am |
| Subject: | [jira] Commented: (SLING-249) Allow mapping nodes to internet domains | |
|---|---|---|
| From: | Felix Meschberger (JIRA) (ji...@apache.org) | |
| Date: | Nov 20, 2008 3:12:21 am | |
| List: | org.apache.incubator.sling-dev | |
Felix Meschberger commented on SLING-249:
-----------------------------------------
I am now taking this issue up after it has been laying around for too long ...
And here is my proposal:
The JcrResourceResolver is extended to support path mappings considering the
Host request header.
* Configuration is provided to map the Host header to a resource prefix.
* Additional configuration is added to define a default mapping.
* The default configuration ignores the Host headers and uses the request
URL unmodified for further mappings.
In contrast to other mappings which just take the request URL into
consideration, this configuration also takes a request header into
consideration. Therefore this solution will only have an effect on the
implementation of the ResourceResolver.resovle(HttpServletRequest) method. The
implementation for the ResourceResolver.resolve(String) is not affected by this
extension.
Furthermore, the functionality of the ResourceResolver.map(String) method is not
modified and this addition has no influence on this method which continues to
return an (absolute) resource path. Instead we add a new API method
ResourceResolver.map(HttpServletRequest, String) which returns an URL
constructed from the request and resource path as follows:
1. The resource path is first mapped by calling the
ResourceResolver.map(String) method
2. The resulting path is then applied to the reverse virtual host mapping.
3. An URL is returned composed as follows:
* Scheme from the request * Host from virtual host mapping, defaulting to Host header from request * Path consisting of context path and mapped resource path
For consistency with the new map(HttpServletRequest, String) method (and also to
provide more flexibility for resource resolution) the
resolve(HttpServletRequest) method is deprecated in favor of a new
resolve(HttpServletRequest, String) method. The deprecated method is defined
such that implementations must call resolve(HttpServletRequest, String) where
the string argument is the HttpServletRequest.getPathInfo() value.
Allow mapping nodes to internet domains
---------------------------------------
Key: SLING-249 URL: https://issues.apache.org/jira/browse/SLING-249 Project: Sling Issue Type: New Feature Components: Engine Reporter: Vidar S. Ramdal Assignee: Felix Meschberger
Sling should support hosting multiple domains, with different JCR roots.
E.g.:
http://www.domain1.com could map to /content/domain1.com
http://www.domain2.com could map to /content/domain2.com
While developing a website, the fully qualified domain might not be available.
Ideally, the mapping could be configured in a flexible way. One option would be
to maintain a set of regular expressions to match against URLs. Each regexp
would then match to a path in the JCR.
-- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.





