Author: buildbot Date: Thu Mar 23 09:32:40 2017 New Revision: 1008846 Log: Staging update by buildbot for sling
Modified: websites/staging/sling/trunk/content/ (props changed) websites/staging/sling/trunk/content/documentation/the-sling-engine/servlets.html Propchange: websites/staging/sling/trunk/content/ ------------------------------------------------------------------------------ --- cms:source-revision (original) +++ cms:source-revision Thu Mar 23 09:32:40 2017 @@ -1 +1 @@ -1788210 +1788211 Modified: websites/staging/sling/trunk/content/documentation/the-sling-engine/servlets.html ============================================================================== --- websites/staging/sling/trunk/content/documentation/the-sling-engine/servlets.html (original) +++ websites/staging/sling/trunk/content/documentation/the-sling-engine/servlets.html Thu Mar 23 09:32:40 2017 @@ -117,7 +117,7 @@ h2:hover > .headerlink, h3:hover > .head <div class="toc"> <ul> <li><a href="#servlet-registration">Servlet Registration</a><ul> -<li><a href="#caveats-when-binding-servlets-by-paths">Caveats when binding servlets by paths</a></li> +<li><a href="#caveats-when-binding-servlets-by-path">Caveats when binding servlets by path</a></li> <li><a href="#registering-a-servlet-using-java-annotations">Registering a Servlet using Java Annotations</a></li> <li><a href="#automated-tests">Automated tests</a></li> <li><a href="#example-registration-by-path">Example: Registration by Path</a></li> @@ -173,7 +173,7 @@ to a script or and servlet.</p> <p>For a Servlet registered as an OSGi service to be used by the Sling Servlet Resolver, either one or both of the <code>sling.servlet.paths</code> or the <code>sling.servlet.resourceTypes</code> service reference properties must be set. If neither is set, the Servlet service is ignored.</p> <p>Each path to be used for registration - either from the <code>sling.servlet.paths</code> property or constructed from the other <code>sling.servlet.\*</code> properties - must be absolute. Any relative path is made absolute by prefixing it with a root path. This prefix may be set with the <code>sling.servlet.prefix</code> service registration property. If this property is not set, the first entry in the <code>ResourceResolver</code> search path for the <code>ResourceResolver.getResource(String)</code> method is used as the prefix. If this entry cannot be derived, a simpe slash - <code>/</code> - is used as the prefix.</p> <p>If <code>sling.servlet.methods</code> is not specified, the servlet is only registered for handling GET and HEAD requests. Make sure to list all methods you want to be handled by this servlet.</p> -<h3 id="caveats-when-binding-servlets-by-paths">Caveats when binding servlets by paths<a class="headerlink" href="#caveats-when-binding-servlets-by-paths" title="Permanent link">¶</a></h3> +<h3 id="caveats-when-binding-servlets-by-path">Caveats when binding servlets by path<a class="headerlink" href="#caveats-when-binding-servlets-by-path" title="Permanent link">¶</a></h3> <p>Binding servlets by paths has several disadvantages when compared to binding by resource types, namely:</p> <ul> <li>path-bound servlets cannot be access controlled using the default JCR repository ACLs</li> @@ -306,7 +306,7 @@ The mechanism helping the provider here <h2 id="error-handler-servlets-or-scripts">Error Handler Servlet(s) or Scripts<a class="headerlink" href="#error-handler-servlets-or-scripts" title="Permanent link">¶</a></h2> <p>Error handling support is described on the <a href="/documentation/the-sling-engine/errorhandling.html">Errorhandling</a> page.</p> <div class="timestamp" style="margin-top: 30px; font-size: 80%; text-align: right;"> - Rev. 1788210 by rombert on Thu, 23 Mar 2017 09:31:03 +0000 + Rev. 1788211 by rombert on Thu, 23 Mar 2017 09:32:31 +0000 </div> <div class="trademarkFooter"> Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project