Author: buildbot
Date: Sun Nov 27 11:56:02 2016
New Revision: 1001706

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 Sun Nov 27 11:56:02 2016
@@ -1 +1 @@
-1771570
+1771571

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
 Sun Nov 27 11:56:02 2016
@@ -173,10 +173,12 @@ to a script or and servlet.</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>
 <h4 id="registering-a-servlet-using-java-annotations">Registering a Servlet 
using Java Annotations<a class="headerlink" 
href="#registering-a-servlet-using-java-annotations" title="Permanent 
link">&para;</a></h4>
-<p>If you are working with the default Apache Sling development stack you can 
either use 
-<em> <a 
href="https://osgi.org/javadoc/r6/cmpn/org/osgi/service/component/annotations/package-summary.html";>OSGi
 DS annotations</a> (introduced with DS 1.2/OSGi 5, properly supported since <a 
href="https://github.com/bndtools/bndtools/wiki/Changes-in-3.0.0";>bnd 3.0</a>, 
being used in <a 
href="http://felix.apache.org/documentation/subprojects/apache-felix-maven-bundle-plugin-bnd.html";>maven-bundle-plugin
 3.0.0</a>) or 
-</em> Generic Felix SCR or Sling-specific <code>@SlingServlet</code> 
annotations from <a 
href="http://felix.apache.org/documentation/subprojects/apache-felix-maven-scr-plugin.html";>Apache
 Felix Maven SCR Plugin</a> to register your Sling servlets:</p>
-<ol>
+<p>If you are working with the default Apache Sling development stack you can 
either use </p>
+<ul>
+<li><a 
href="https://osgi.org/javadoc/r6/cmpn/org/osgi/service/component/annotations/package-summary.html";>OSGi
 DS annotations</a> (introduced with DS 1.2/OSGi 5, properly supported since <a 
href="https://github.com/bndtools/bndtools/wiki/Changes-in-3.0.0";>bnd 3.0</a>, 
being used in <a 
href="http://felix.apache.org/documentation/subprojects/apache-felix-maven-bundle-plugin-bnd.html";>maven-bundle-plugin
 3.0.0</a>) or </li>
+<li>
+<p>Generic Felix SCR or Sling-specific <code>@SlingServlet</code> annotations 
from <a 
href="http://felix.apache.org/documentation/subprojects/apache-felix-maven-scr-plugin.html";>Apache
 Felix Maven SCR Plugin</a> to register your Sling servlets:</p>
+</li>
 <li>
 <p>OSGi DS annotations (recommended)</p>
 <div class="codehilite"><pre><span class="nd">@Component</span><span 
class="o">(</span>
@@ -218,7 +220,7 @@ to a script or and servlet.</p>
 
 
 </li>
-</ol>
+</ul>
 <h3 id="automated-tests">Automated tests<a class="headerlink" 
href="#automated-tests" title="Permanent link">&para;</a></h3>
 <p>The <a 
href="http://svn.apache.org/repos/asf/sling/trunk/launchpad/test-services/";>launchpad/test-services</a>
 module contains test servlets that use various combinations of the above 
properties.</p>
 <p>The <a 
href="http://svn.apache.org/repos/asf/sling/trunk/launchpad/integration-tests/";>launchpad/integration-tests</a>
 module contains a number of tests (like the 
[ExtensionServletTest|http://svn.apache.org/repos/asf/sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/servlets/resolution/ExtensionServletTest.java]
 for example) that verify the results.</p>
@@ -293,7 +295,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">&para;</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. 1771570 by kwin on Sun, 27 Nov 2016 11:53:49 +0000
+        Rev. 1771571 by kwin on Sun, 27 Nov 2016 11:55:54 +0000
       </div>
       <div class="trademarkFooter"> 
         Apache Sling, Sling, Apache, the Apache feather logo, and the Apache 
Sling project


Reply via email to