incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r862233 - in /websites/staging/sling/trunk/content: ./ documentation/the-sling-engine/url-to-script-resolution.html
Date Fri, 17 May 2013 08:49:26 GMT
Author: buildbot
Date: Fri May 17 08:49:26 2013
New Revision: 862233

Log:
Staging update by buildbot for sling

Modified:
    websites/staging/sling/trunk/content/   (props changed)
    websites/staging/sling/trunk/content/documentation/the-sling-engine/url-to-script-resolution.html

Propchange: websites/staging/sling/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Fri May 17 08:49:26 2013
@@ -1 +1 @@
-1483370
+1483692

Modified: websites/staging/sling/trunk/content/documentation/the-sling-engine/url-to-script-resolution.html
==============================================================================
--- websites/staging/sling/trunk/content/documentation/the-sling-engine/url-to-script-resolution.html
(original)
+++ websites/staging/sling/trunk/content/documentation/the-sling-engine/url-to-script-resolution.html
Fri May 17 08:49:26 2013
@@ -86,11 +86,7 @@
       
       
       <h1>URL to Script Resolution</h1>
-      <div class="info">
-This page is currently a copy from [this mailing list thread](http://markmail.org/message/tksvk4xfwapdpkwo).
See also [SLING-387|https://issues.apache.org/jira/browse/SLING-387] and the unit test [ScriptSelectionTest.java](http://svn.apache.org/repos/asf/incubator/sling/trunk/servlets/resolver/src/test/java/org/apache/sling/servlets/resolver/helper/ScriptSelectionTest.java).
-</div>
-
-<div class="toc">
+      <div class="toc">
 <ul>
 <li><a href="#fundamental-scripts-and-servlets-are-equal">Fundamental: Scripts
and Servlets are equal</a></li>
 <li><a href="#base-resource-type-inheritance">Base: Resource Type Inheritance</a></li>
@@ -101,8 +97,15 @@ This page is currently a copy from [this
 <li><a href="#examples">Examples</a></li>
 </ul>
 </div>
-<p>This page explains how Sling maps URLs to a script or and servlet. First of all
Sling looks up the resource identified by the URL - typically a path inside the JCR repository,
which is annotated by the <code>sling:resourceType</code> property which defines
the resource type of that resource. Using this resource type (which is kind of a relative
path, eg. "myblog/comment"), scripts or servlets are looked up. </p>
-<p>Scripts and servlets are itself resource in Sling and thus have a resource path:
this is either the location in the JCR repository, the resource type in a servlet component
configuration or the "virtual" bundle resource path (if a script is provided inside a bundle
without being installed into the JCR repository). </p>
+<p>This page explains how Sling maps URLs to a script or and servlet. First of all
Sling looks up the resource identified 
+by the URL - typically a path inside the JCR repository, which is annotated by the <code>sling:resourceType</code>
property 
+which defines the resource type of that resource. Using this resource type (which is kind
of a relative path, 
+eg. "myblog/comment"), scripts or servlets are looked up. </p>
+<p>Scripts and servlets are itself resource in Sling and thus have a resource path:
this is either the location in the 
+JCR repository, the resource type in a servlet component configuration or the "virtual" bundle
resource path 
+(if a script is provided inside a bundle without being installed into the JCR repository).
</p>
+<p>For the Whole Truth about script resolution, see the <a href="http://svn.apache.org/repos/asf/sling/trunk/bundles/servlets/resolver/src/test/java/org/apache/sling/servlets/resolver/internal/helper/ScriptSelectionTest.java">ScriptSelectionTest</a>
class. If you see interesting cases that are not
+covered there, please let us know via the Sling users mailing list.</p>
 <p>TODO: explain super types, servlet path mappings, node type resource types (<code>my:type
-&gt; my/type</code>) </p>
 <h2 id="fundamental-scripts-and-servlets-are-equal">Fundamental: Scripts and Servlets
are equal</h2>
 <p>In the following discussion, I will write about scripts. This will always include
servlets as well. In fact, internally, Sling only handles with Servlets, whereas scripts are
packed inside a Servlet wrapping and representing the script. </p>
@@ -173,7 +176,7 @@ This page is currently a copy from [this
 </ul>
 <p>The priority of script selection would (6) - (4) - (5) - (3) - (2) - (1) - (0).
Note that (4) is a better match than (5) because it matches more selectors even though (5)
has an extension match where (4) does not.</p>
       <div class="timestamp" style="margin-top: 30px; font-size: 80%; text-align: right;">
-        Rev. 1464512 by bdelacretaz on Thu, 4 Apr 2013 13:03:31 +0000
+        Rev. 1483692 by bdelacretaz on Fri, 17 May 2013 08:49:15 +0000
       </div>
       <div class="trademarkFooter"> 
         Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project



Mime
View raw message