You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bu...@apache.org on 2014/09/17 23:22:40 UTC
svn commit: r922607 - in /websites/staging/sling/trunk/content: ./
documentation/bundles/scripting/ documentation/the-sling-engine/
Author: buildbot
Date: Wed Sep 17 21:22:40 2014
New Revision: 922607
Log:
Staging update by buildbot for sling
Added:
websites/staging/sling/trunk/content/documentation/bundles/scripting/scripting-thymeleaf-html5-template-mode-handler.png (with props)
websites/staging/sling/trunk/content/documentation/bundles/scripting/scripting-thymeleaf-non-caching-template-resolver.png (with props)
websites/staging/sling/trunk/content/documentation/bundles/scripting/scripting-thymeleaf-script-engine-factory.png (with props)
Modified:
websites/staging/sling/trunk/content/ (props changed)
websites/staging/sling/trunk/content/documentation/bundles/scripting/scripting-thymeleaf.html
websites/staging/sling/trunk/content/documentation/the-sling-engine/authentication.html
websites/staging/sling/trunk/content/sitemap.html
Propchange: websites/staging/sling/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Wed Sep 17 21:22:40 2014
@@ -1 +1 @@
-1625716
+1625831
Added: websites/staging/sling/trunk/content/documentation/bundles/scripting/scripting-thymeleaf-html5-template-mode-handler.png
==============================================================================
Binary file - no diff available.
Propchange: websites/staging/sling/trunk/content/documentation/bundles/scripting/scripting-thymeleaf-html5-template-mode-handler.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: websites/staging/sling/trunk/content/documentation/bundles/scripting/scripting-thymeleaf-non-caching-template-resolver.png
==============================================================================
Binary file - no diff available.
Propchange: websites/staging/sling/trunk/content/documentation/bundles/scripting/scripting-thymeleaf-non-caching-template-resolver.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: websites/staging/sling/trunk/content/documentation/bundles/scripting/scripting-thymeleaf-script-engine-factory.png
==============================================================================
Binary file - no diff available.
Propchange: websites/staging/sling/trunk/content/documentation/bundles/scripting/scripting-thymeleaf-script-engine-factory.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Modified: websites/staging/sling/trunk/content/documentation/bundles/scripting/scripting-thymeleaf.html
==============================================================================
--- websites/staging/sling/trunk/content/documentation/bundles/scripting/scripting-thymeleaf.html (original)
+++ websites/staging/sling/trunk/content/documentation/bundles/scripting/scripting-thymeleaf.html Wed Sep 17 21:22:40 2014
@@ -105,11 +105,17 @@
<li><code>MessageResolver</code> backed by <code>ResourceBundleProvider</code> from <code>org.apache.sling.i18n</code></li>
</ul>
<h2 id="configuration">Configuration</h2>
+<p>By default Sling Scripting Thymeleaf's <em>Script Engine Factory</em> is configured for <em>HTML5</em> templates with extension <code>html</code> and mime type <code>text/html</code>.</p>
+<p><img alt="Sling Scripting Thymeleaf Script Engine Factory" src="scripting-thymeleaf-script-engine-factory.png" /></p>
+<p>The <em>Non-Caching Template Resolver</em> (the only available template resolver for now) is configured to read templates with encoding <code>UTF-8</code>.</p>
+<p><img alt="Sling Scripting Thymeleaf Non-Caching Template Resolver" src="scripting-thymeleaf-non-caching-template-resolver.png" /></p>
+<p>The <em>HTML5 Template Mode Handler</em> is configured to handle all paths which match the pattern <code>*.html</code>.</p>
+<p><img alt="Sling Scripting Thymeleaf HTML5 Template Mode Handler" src="scripting-thymeleaf-html5-template-mode-handler.png" /></p>
<h2 id="sample">Sample</h2>
<p>The <a href="http://svn.apache.org/repos/asf/sling/trunk/samples/fling/">Sling Fling Sample</a> is a sample using Sling Scripting Thymeleaf with <a href="/documentation/bundles/models.html">Sling Models</a> and <a href="/documentation/bundles/sling-query.html">Sling Query</a>.</p>
<p><img alt="Sling Fling Sample" src="sling-fling-sample.png" /></p>
<div class="timestamp" style="margin-top: 30px; font-size: 80%; text-align: right;">
- Rev. 1625716 by olli on Wed, 17 Sep 2014 17:55:16 +0000
+ Rev. 1625732 by olli on Wed, 17 Sep 2014 18:36:40 +0000
</div>
<div class="trademarkFooter">
Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project
Modified: websites/staging/sling/trunk/content/documentation/the-sling-engine/authentication.html
==============================================================================
--- websites/staging/sling/trunk/content/documentation/the-sling-engine/authentication.html (original)
+++ websites/staging/sling/trunk/content/documentation/the-sling-engine/authentication.html Wed Sep 17 21:22:40 2014
@@ -98,9 +98,7 @@
<ol>
<li>First the OSGi HTTP Service implementation is analyzing the request URL to find a match for a servlet or resource registered with the HTTP Service.</li>
<li>Now the HTTP Service implementation has to call the <code>handleSecurity</code> method of the <code>HttpContext</code> object with which the servlet or resource has been registered. This method returns <code>true</code> if the request should be serviced. If this method returns <code>false</code> the HTTP Service implementation terminates the request sending back any response which has been prepared by the <code>handleSecurity</code> method. Note, that the <code>handleSecurity</code> method must prepare the failure response sent to the client, the HTTP Service adds nothing here. If the <code>handleSecurity</code> method is successful, it must add two (or three) request attributes described below.</li>
-<li>When the <code>handleSecurity</code> method returns <code>true</code> the HTTP Service either calls the <code>Servlet.service</code> method or sends back the requested resource depending on whether a servlet or a resource has been selected in the first step.
-{column}
-{section}</li>
+<li>When the <code>handleSecurity</code> method returns <code>true</code> the HTTP Service either calls the <code>Servlet.service</code> method or sends back the requested resource depending on whether a servlet or a resource has been selected in the first step.</li>
</ol>
<p>The important thing to note here is, that at the time the <code>handleSecurity</code> method is called, the <code>SlingMainServlet</code> is not yet in control of the request. So any functionality added by the <code>SlingMainServlet</code>, notably the <code>SlingHttpServletRequest</code> and <code>SlingHttpServletResponse</code> objects are not available to the implementation of the <code>handleSecurity</code> method.</p>
<p>The following pages describe the full details of request authentication in Sling in full detail:</p>
@@ -111,7 +109,7 @@
<li><a href="/documentation/the-sling-engine/authentication/authentication-authenticationhandler.html">AuthenticationHandler</a>: The <code>AuthenticationHandler</code> interface defines the service API which may be implemented by authentication handlers registered as OSGi services. </li>
</ul>
<div class="timestamp" style="margin-top: 30px; font-size: 80%; text-align: right;">
- Rev. 1600898 by dklco on Fri, 6 Jun 2014 14:26:18 +0000
+ Rev. 1625787 by olli on Wed, 17 Sep 2014 19:50:30 +0000
</div>
<div class="trademarkFooter">
Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project
Modified: websites/staging/sling/trunk/content/sitemap.html
==============================================================================
--- websites/staging/sling/trunk/content/sitemap.html (original)
+++ websites/staging/sling/trunk/content/sitemap.html Wed Sep 17 21:22:40 2014
@@ -110,10 +110,16 @@
<li><a href="/documentation/bundles/models.html">Sling Models</a></li>
<li><a href="/documentation/bundles/osgi-installer.html">OSGi Installer</a></li>
<li><a href="/documentation/bundles/output-rewriting-pipelines-org-apache-sling-rewriter.html">Output Rewriting Pipelines (org.apache.sling.rewriter)</a></li>
+<li><a href="/documentation/bundles/rendering-content-default-get-servlets.html">Rendering Content - Default GET Servlets</a></li>
<li><a href="/documentation/bundles/request-analysis.html">Request Processing Analyzer (reqanalyzer)</a></li>
<li><a href="/documentation/bundles/resource-access-security.html">Resource Access Security</a></li>
<li><a href="/documentation/bundles/scheduler-service-commons-scheduler.html">Scheduler Service (commons scheduler)</a></li>
+<li><a href="/documentation/bundles/scripting.html">Sling Scripting</a><ul>
+<li><a href="/documentation/bundles/scripting/scripting-thymeleaf.html">Sling Scripting Thymeleaf</a></li>
+</ul>
+</li>
<li><a href="/documentation/bundles/sling-health-check-tool.html">Sling Health Check Tools</a></li>
+<li><a href="/documentation/bundles/sling-query.html">Sling Query</a></li>
<li><a href="/documentation/bundles/sling-scripting-jsp-taglib.html">Sling Scripting JSP Taglib</a></li>
<li><a href="/documentation/bundles/sling-settings-org-apache-sling-settings.html">Sling Settings (org.apache.sling.settings)</a></li>
<li><a href="/documentation/bundles/web-console-extensions.html">Web Console Extensions</a></li>