http://git-wip-us.apache.org/repos/asf/sling-site/blob/47a72f1d/documentation/the-sling-engine/errorhandling.html ---------------------------------------------------------------------- diff --git a/documentation/the-sling-engine/errorhandling.html b/documentation/the-sling-engine/errorhandling.html index 1a78d10..0ea233b 100644 --- a/documentation/the-sling-engine/errorhandling.html +++ b/documentation/the-sling-engine/errorhandling.html @@ -72,7 +72,9 @@ </div> <div class="main"> <div class="breadcrumbs"><a href="/">Home</a> » <a href="/documentation.html">Documentation</a> » <a href="/documentation/the-sling-engine.html">The Sling Engine</a> » </div> <h1 class="pagetitle"> Errorhandling - </h1><div class="tags"><a href="/tags/core.html" class="label">core</a> <a href="/tags/errorhandling.html" class="label">errorhandling</a> </div><div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script><div class="row"><div class="small-12 columns"><section class="wrap"><p>The Sling Engine includes support for handling uncaught <code>Throwable</code> as well as rendering custom HTTP status code pages. This is implemented by expecting a (single) <code>org.apache.sling.engine.servlets.ErrorHandler</code> service to which handling of uncaught <code>Throwable</code> and HTTP status responses are delegated.</p> + </h1><div class="tags"><a href="/tags/core.html" class="label">core</a> <a href="/tags/errorhandling.html" class="label">errorhandling</a> </div> +<div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script> +<div class="row"><div class="small-12 columns"><section class="wrap"><p>The Sling Engine includes support for handling uncaught <code>Throwable</code> as well as rendering custom HTTP status code pages. This is implemented by expecting a (single) <code>org.apache.sling.engine.servlets.ErrorHandler</code> service to which handling of uncaught <code>Throwable</code> and HTTP status responses are delegated.</p> <p>The Sling Servlet Resolver bundle implements this interface by providing an elaborate mechanism to find the correct error handling script or servlet using the same algorithms as are used to select the scripts or servlets to handle regular requests.</p> <p>This page provides more information on how error handler scripts are selected and what is provided out of the box.</p> <p>The <a href="https://svn.apache.org/repos/asf/sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/servlets/resolver/errorhandler/ErrorHandlingTest.java">ErrorHandlingTest</a> in our integration tests suite provides working examples of various error handling scenarios.</p> @@ -120,7 +122,9 @@ <li>Dump the request progress tracker</li> </ul> <p>Starting with Sling Servlet Resolver version 2.0.10 the default error handler servlet is looked up using the string <code>default</code> as the request extension and the provided default servlet is registered as <code><prefix>/sling/servlet/errorhandler/default.servlet</code> where <prefix> is the last entry in the resource resolver search path, <code>/libs</code> by default.</p> -<p>Thus to overwrite the default error handler servlet provide a servlet or script for the <code>default</code> extension, for example <code>/apps/sling/servlet/errorhandler/default.groovy</code>.</p></section></div></div> +<p>Thus to overwrite the default error handler servlet provide a servlet or script for the <code>default</code> extension, for example <code>/apps/sling/servlet/errorhandler/default.groovy</code>.</p></section></div></div> +<div class="revisionInfo">Last modified by <span class="author">Bertrand Delacretaz</span> on <a href="https://github.com/apache/sling-site/commit/3d5fdfe">Fri Sep 29 15:36:08 2017 +0200</a> : <span class="comment">First shot at adding some tags +</span></div> <div class="footer"> <div class="trademarkFooter"> Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.
http://git-wip-us.apache.org/repos/asf/sling-site/blob/47a72f1d/documentation/the-sling-engine/featureflags.html ---------------------------------------------------------------------- diff --git a/documentation/the-sling-engine/featureflags.html b/documentation/the-sling-engine/featureflags.html index 186be05..f87769f 100644 --- a/documentation/the-sling-engine/featureflags.html +++ b/documentation/the-sling-engine/featureflags.html @@ -72,7 +72,9 @@ </div> <div class="main"> <div class="breadcrumbs"><a href="/">Home</a> » <a href="/documentation.html">Documentation</a> » <a href="/documentation/the-sling-engine.html">The Sling Engine</a> » </div> <h1 class="pagetitle"> Feature Flags - </h1><div class="tags"><a href="/tags/core.html" class="label">core</a> <a href="/tags/featureflags.html" class="label">featureflags</a> </div><div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script><div class="row"><div class="small-12 columns"><section class="wrap"><p>Feature Flags are used to select whether a particular feature is enabled or not. This allows to continuosly deploy new features of an application without making them globally available yet.</p> + </h1><div class="tags"><a href="/tags/core.html" class="label">core</a> <a href="/tags/featureflags.html" class="label">featureflags</a> </div> +<div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script> +<div class="row"><div class="small-12 columns"><section class="wrap"><p>Feature Flags are used to select whether a particular feature is enabled or not. This allows to continuosly deploy new features of an application without making them globally available yet.</p> <p>Features may be enabled based on various contextual data:</p> <ul> <li>Time of Day</li> @@ -104,7 +106,9 @@ <td>Boolean flag indicating whether the feature is enabled or not by this configuration</td> </tr> </tbody> -</table></section></div></div> +</table></section></div></div> +<div class="revisionInfo">Last modified by <span class="author">Bertrand Delacretaz</span> on <a href="https://github.com/apache/sling-site/commit/3d5fdfe">Fri Sep 29 15:36:08 2017 +0200</a> : <span class="comment">First shot at adding some tags +</span></div> <div class="footer"> <div class="trademarkFooter"> Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners. http://git-wip-us.apache.org/repos/asf/sling-site/blob/47a72f1d/documentation/the-sling-engine/filters.html ---------------------------------------------------------------------- diff --git a/documentation/the-sling-engine/filters.html b/documentation/the-sling-engine/filters.html index 1c46a6b..6e6c408 100644 --- a/documentation/the-sling-engine/filters.html +++ b/documentation/the-sling-engine/filters.html @@ -72,7 +72,9 @@ </div> <div class="main"> <div class="breadcrumbs"><a href="/">Home</a> » <a href="/documentation.html">Documentation</a> » <a href="/documentation/the-sling-engine.html">The Sling Engine</a> » </div> <h1 class="pagetitle"> Servlet Filter Support - </h1><div class="tags"><a href="/tags/core.html" class="label">core</a> <a href="/tags/servlets.html" class="label">servlets</a> </div><div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script><div class="row"><div class="small-12 columns"><section class="wrap"><p>Sling supports filter processing by applying filter chains to the requests before actually dispatching to the servlet or script for processing. Filters to be used in such filter processing are plain OSGi services of type <code>javax.servlet.Filter</code> which of course means that the services implement this interface.</p> + </h1><div class="tags"><a href="/tags/core.html" class="label">core</a> <a href="/tags/servlets.html" class="label">servlets</a> </div> +<div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script> +<div class="row"><div class="small-12 columns"><section class="wrap"><p>Sling supports filter processing by applying filter chains to the requests before actually dispatching to the servlet or script for processing. Filters to be used in such filter processing are plain OSGi services of type <code>javax.servlet.Filter</code> which of course means that the services implement this interface.</p> <div class="note"> See <a href="https://issues.apache.org/jira/browse/SLING-1213">SLING-1213</a>, <a href="https://issues.apache.org/jira/browse/SLING-1734">SLING-1734</a>, and @@ -236,7 +238,9 @@ Component Filters: <li>Any <code>javax.servlet.Filter</code> service is accepted as a filter for Sling unless the <code>pattern</code> property used by the <a href="http://felix.apache.org/site/apache-felix-http-service.html#ApacheFelixHTTPService-UsingtheWhiteboard">Apache Felix HttpService whiteboard support</a> is set in the service registration properties.</li> <li>The <code>filter.scope</code> property is optional and supports the case-sensitive values <code>request</code> and <code>component</code>.</li> <li>Filter ordering is defined by the <code>filter.order</code> property whose default value is <code>Integer.MAX_VALUE</code> where smaller values have higher priority over higher values.</li> -</ul></section></div></div> +</ul></section></div></div> +<div class="revisionInfo">Last modified by <span class="author">Bertrand Delacretaz</span> on <a href="https://github.com/apache/sling-site/commit/3d5fdfe">Fri Sep 29 15:36:08 2017 +0200</a> : <span class="comment">First shot at adding some tags +</span></div> <div class="footer"> <div class="trademarkFooter"> Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners. http://git-wip-us.apache.org/repos/asf/sling-site/blob/47a72f1d/documentation/the-sling-engine/mappings-for-resource-resolution.html ---------------------------------------------------------------------- diff --git a/documentation/the-sling-engine/mappings-for-resource-resolution.html b/documentation/the-sling-engine/mappings-for-resource-resolution.html index edc4e4c..ddb8f15 100644 --- a/documentation/the-sling-engine/mappings-for-resource-resolution.html +++ b/documentation/the-sling-engine/mappings-for-resource-resolution.html @@ -72,7 +72,9 @@ </div> <div class="main"> <div class="breadcrumbs"><a href="/">Home</a> » <a href="/documentation.html">Documentation</a> » <a href="/documentation/the-sling-engine.html">The Sling Engine</a> » </div> <h1 class="pagetitle"> Mappings for Resource Resolution - </h1><div class="tags"><a href="/tags/core.html" class="label">core</a> <a href="/tags/resources.html" class="label">resources</a> <a href="/tags/resourcemappings.html" class="label">resourcemappings</a> </div><div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script><div class="row"><div class="small-12 columns"><section class="wrap"><p><!-- TODO reactivate TOC once JBake moves to flexmark-java --> + </h1><div class="tags"><a href="/tags/core.html" class="label">core</a> <a href="/tags/resources.html" class="label">resources</a> <a href="/tags/resourcemappings.html" class="label">resourcemappings</a> </div> +<div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script> +<div class="row"><div class="small-12 columns"><section class="wrap"><p><!-- TODO reactivate TOC once JBake moves to flexmark-java --> </p> <h2><a href="#configuration" name="configuration">Configuration</a></h2> <h3><a href="#properties" name="properties">Properties</a></h3> @@ -291,7 +293,9 @@ for (String segment: segments) { <li>start Apache Sling (this might take few minutes, depending on how many vanity path entries are present)</li> </ul> <h2><a href="#debugging-issues" name="debugging-issues">Debugging Issues</a></h2> -<p>Use the Felix Web Console Plugin provided at <code>/system/console/jcrresolver</code> to inspect both the mapping and the resolver map entries. Also you can check what either <code>ResourceResolver.map(...)</code> or <code>ResourceResolver.resolve(...)</code> would return for a given URL/path.</p></section></div></div> +<p>Use the Felix Web Console Plugin provided at <code>/system/console/jcrresolver</code> to inspect both the mapping and the resolver map entries. Also you can check what either <code>ResourceResolver.map(...)</code> or <code>ResourceResolver.resolve(...)</code> would return for a given URL/path.</p></section></div></div> +<div class="revisionInfo">Last modified by <span class="author">Bertrand Delacretaz</span> on <a href="https://github.com/apache/sling-site/commit/3d5fdfe">Fri Sep 29 15:36:08 2017 +0200</a> : <span class="comment">First shot at adding some tags +</span></div> <div class="footer"> <div class="trademarkFooter"> Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners. http://git-wip-us.apache.org/repos/asf/sling-site/blob/47a72f1d/documentation/the-sling-engine/request-listeners.html ---------------------------------------------------------------------- diff --git a/documentation/the-sling-engine/request-listeners.html b/documentation/the-sling-engine/request-listeners.html index 12d0204..3eb922f 100644 --- a/documentation/the-sling-engine/request-listeners.html +++ b/documentation/the-sling-engine/request-listeners.html @@ -72,7 +72,9 @@ </div> <div class="main"> <div class="breadcrumbs"><a href="/">Home</a> » <a href="/documentation.html">Documentation</a> » <a href="/documentation/the-sling-engine.html">The Sling Engine</a> » </div> <h1 class="pagetitle"> Request Listeners - </h1><div class="tags"><a href="/tags/core.html" class="label">core</a> <a href="/tags/requests.html" class="label">requests</a> </div><div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script><div class="row"><div class="small-12 columns"><section class="wrap"><p>Sling provides the possibility to "listen" to a request processed by the Sling Engine (<code>SlingMainServlet</code>). To get notified you implement the service interface <code>org.apache.sling.api.request.SlingRequestListener</code>.</p> + </h1><div class="tags"><a href="/tags/core.html" class="label">core</a> <a href="/tags/requests.html" class="label">requests</a> </div> +<div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script> +<div class="row"><div class="small-12 columns"><section class="wrap"><p>Sling provides the possibility to "listen" to a request processed by the Sling Engine (<code>SlingMainServlet</code>). To get notified you implement the service interface <code>org.apache.sling.api.request.SlingRequestListener</code>.</p> <pre><code><!-- TODO syntax marker (#!java) disabled -->public interface SlingRequestListener { static final String SERVICE_NAME = "org.apache.sling.api.request.SlingRequestListener"; @@ -109,7 +111,9 @@ <td>at the end of the <code>service</code> method in <code>SlingMainServlet</code> </td> </tr> </tbody> -</table></section></div></div> +</table></section></div></div> +<div class="revisionInfo">Last modified by <span class="author">Bertrand Delacretaz</span> on <a href="https://github.com/apache/sling-site/commit/3d5fdfe">Fri Sep 29 15:36:08 2017 +0200</a> : <span class="comment">First shot at adding some tags +</span></div> <div class="footer"> <div class="trademarkFooter"> Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners. http://git-wip-us.apache.org/repos/asf/sling-site/blob/47a72f1d/documentation/the-sling-engine/request-parameters.html ---------------------------------------------------------------------- diff --git a/documentation/the-sling-engine/request-parameters.html b/documentation/the-sling-engine/request-parameters.html index b0b6225..862d291 100644 --- a/documentation/the-sling-engine/request-parameters.html +++ b/documentation/the-sling-engine/request-parameters.html @@ -72,7 +72,9 @@ </div> <div class="main"> <div class="breadcrumbs"><a href="/">Home</a> » <a href="/documentation.html">Documentation</a> » <a href="/documentation/the-sling-engine.html">The Sling Engine</a> » </div> <h1 class="pagetitle"> Request Parameter Handling in Sling - </h1><div class="tags"><a href="/tags/core.html" class="label">core</a> <a href="/tags/requests.html" class="label">requests</a> </div><div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script><div class="row"><div class="small-12 columns"><section class="wrap"><h2><a href="#servlet-api" name="servlet-api">Servlet API</a></h2> + </h1><div class="tags"><a href="/tags/core.html" class="label">core</a> <a href="/tags/requests.html" class="label">requests</a> </div> +<div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script> +<div class="row"><div class="small-12 columns"><section class="wrap"><h2><a href="#servlet-api" name="servlet-api">Servlet API</a></h2> <p>The Servlet API specification provides the following methods to access the parameters of a request</p> <table> <thead> @@ -195,7 +197,9 @@ <div class="info"> Up to and including Sling Engine 2.2.2 request parameters are always decoded with ISO-8859-1 encoding if the <code>_charset_</code> request parameter is missing. As of Sling Engine 2.2.4 the <code>_charset_</code> request parameter is optional. As of this version the Sling Main Servlet supports a configuration setting which allows to change the default character encoding used if the <code>_charset_</code> request parameter is missing. To enable this functionality set the <code>sling.default.parameter.encoding</code> parameter of the Sling Main Servlet (PID <code>org.apache.sling.engine.impl.SlingMainServlet</code>) configuration (for Sling Engine < 2.3.0) or the same parameter of the Sling Request Parameter Handling (PID <code>org.apache.sling.engine.parameters</code>) configuration (for Sling Engine >= 2.3.0 ) to the desired encoding, which of course must be supported by the actual Java Platform. -</div></section></div></div> +</div></section></div></div> +<div class="revisionInfo">Last modified by <span class="author">Bertrand Delacretaz</span> on <a href="https://github.com/apache/sling-site/commit/3d5fdfe">Fri Sep 29 15:36:08 2017 +0200</a> : <span class="comment">First shot at adding some tags +</span></div> <div class="footer"> <div class="trademarkFooter"> Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners. http://git-wip-us.apache.org/repos/asf/sling-site/blob/47a72f1d/documentation/the-sling-engine/resources.html ---------------------------------------------------------------------- diff --git a/documentation/the-sling-engine/resources.html b/documentation/the-sling-engine/resources.html index 5311987..e4b68a7 100644 --- a/documentation/the-sling-engine/resources.html +++ b/documentation/the-sling-engine/resources.html @@ -72,7 +72,9 @@ </div> <div class="main"> <div class="breadcrumbs"><a href="/">Home</a> » <a href="/documentation.html">Documentation</a> » <a href="/documentation/the-sling-engine.html">The Sling Engine</a> » </div> <h1 class="pagetitle"> Resources - </h1><div class="tags"><a href="/tags/core.html" class="label">core</a> <a href="/tags/resources.html" class="label">resources</a> </div><div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script><div class="row"><div class="small-12 columns"><section class="wrap"><p><!-- TODO reactivate TOC once JBake moves to flexmark-java --> + </h1><div class="tags"><a href="/tags/core.html" class="label">core</a> <a href="/tags/resources.html" class="label">resources</a> </div> +<div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script> +<div class="row"><div class="small-12 columns"><section class="wrap"><p><!-- TODO reactivate TOC once JBake moves to flexmark-java --> </p> <h2><a href="#what-is-a-resource" name="what-is-a-resource">What is a Resource</a></h2> <p>The Resource is one of the central parts of Sling. Extending from JCR's <em>Everything is Content</em>, Sling assumes <em>Everthing is a Resource</em>. Thus Sling is maintaining a virtual tree of resources, which is a merger of the actual contents in the JCR Repository and resources provided by so called resource providers. By doing this Sling fits very well in the paradigma of the REST architecture.</p> @@ -223,7 +225,9 @@ <h3><a href="#osgi-event-admin" name="osgi-event-admin">OSGi Event Admin</a></h3> <p>Resource events are sent out via the OSGi Event Admin. You can subscribe to those event by registering an OSGi service for <a href="https://osgi.org/javadoc/r6/cmpn/org/osgi/service/event/EventHandler.html"><code>org.osgi.service.event.EventHandler</code></a>. Several properties should be used to restrict the subscription to only the relevant event. The event topics which are used for resources are listed as constants in <a href="http://sling.apache.org/apidocs/sling8/org/apache/sling/api/SlingConstants.html"><code>org.apache.sling.api.SlingConstants</code></a> starting with the prefix <code>TOPIC_</code>.</p> <h2><a href="#wrap-decorate-resources" name="wrap-decorate-resources">Wrap/Decorate Resources</a></h2> -<p>The Sling API provides an easy way to wrap or decorate a resource before returning. Details see <a href="/documentation/the-sling-engine/wrap-or-decorate-resources.html">Wrap or Decorate Resources</a>.</p></section></div></div> +<p>The Sling API provides an easy way to wrap or decorate a resource before returning. Details see <a href="/documentation/the-sling-engine/wrap-or-decorate-resources.html">Wrap or Decorate Resources</a>.</p></section></div></div> +<div class="revisionInfo">Last modified by <span class="author">Bertrand Delacretaz</span> on <a href="https://github.com/apache/sling-site/commit/3d5fdfe">Fri Sep 29 15:36:08 2017 +0200</a> : <span class="comment">First shot at adding some tags +</span></div> <div class="footer"> <div class="trademarkFooter"> Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners. http://git-wip-us.apache.org/repos/asf/sling-site/blob/47a72f1d/documentation/the-sling-engine/service-authentication.html ---------------------------------------------------------------------- diff --git a/documentation/the-sling-engine/service-authentication.html b/documentation/the-sling-engine/service-authentication.html index 6764770..9224d69 100644 --- a/documentation/the-sling-engine/service-authentication.html +++ b/documentation/the-sling-engine/service-authentication.html @@ -72,7 +72,9 @@ </div> <div class="main"> <div class="breadcrumbs"><a href="/">Home</a> » <a href="/documentation.html">Documentation</a> » <a href="/documentation/the-sling-engine.html">The Sling Engine</a> » </div> <h1 class="pagetitle"> Service Authentication - </h1><div class="tags"><a href="/tags/authentication.html" class="label">authentication</a> <a href="/tags/serviceusers.html" class="label">serviceusers</a> </div><div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script><div class="row"><div class="small-12 columns"><section class="wrap"><p><!-- TODO reactivate TOC once JBake moves to flexmark-java --> + </h1><div class="tags"><a href="/tags/authentication.html" class="label">authentication</a> <a href="/tags/serviceusers.html" class="label">serviceusers</a> </div> +<div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script> +<div class="row"><div class="small-12 columns"><section class="wrap"><p><!-- TODO reactivate TOC once JBake moves to flexmark-java --> </p> <h2><a href="#problem" name="problem">Problem</a></h2> <p>To access the data storage in the Resource Tree and/or the JCR Repository authentication is required to properly setup access control and guard sensitive data from unauthorized access. For regular request processing this authentication step is handled by the Sling <a href="/documentation/the-sling-engine/authentication.html">Authentication</a> subsystem.</p> @@ -227,7 +229,9 @@ whitelist.bundles.regexp="^PAXEXAM.*$" <td>A regular expression that whitelists all matching bundle symbolic names. This is <strong>NOT</strong> recommended for production and warnings will be logged. </td> </tr> </tbody> -</table></section></div></div> +</table></section></div></div> +<div class="revisionInfo">Last modified by <span class="author">Bertrand Delacretaz</span> on <a href="https://github.com/apache/sling-site/commit/3d5fdfe">Fri Sep 29 15:36:08 2017 +0200</a> : <span class="comment">First shot at adding some tags +</span></div> <div class="footer"> <div class="trademarkFooter"> Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners. http://git-wip-us.apache.org/repos/asf/sling-site/blob/47a72f1d/documentation/the-sling-engine/servlets.html ---------------------------------------------------------------------- diff --git a/documentation/the-sling-engine/servlets.html b/documentation/the-sling-engine/servlets.html index 6ea56da..8798b54 100644 --- a/documentation/the-sling-engine/servlets.html +++ b/documentation/the-sling-engine/servlets.html @@ -72,7 +72,9 @@ </div> <div class="main"> <div class="breadcrumbs"><a href="/">Home</a> » <a href="/documentation.html">Documentation</a> » <a href="/documentation/the-sling-engine.html">The Sling Engine</a> » </div> <h1 class="pagetitle"> Servlets and Scripts - </h1><div class="tags"><a href="/tags/servlets.html" class="label">servlets</a> <a href="/tags/core.html" class="label">core</a> </div><div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script><div class="row"><div class="small-12 columns"><section class="wrap"><p><!-- TODO reactivate TOC once JBake moves to flexmark-java --> + </h1><div class="tags"><a href="/tags/servlets.html" class="label">servlets</a> <a href="/tags/core.html" class="label">core</a> </div> +<div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script> +<div class="row"><div class="small-12 columns"><section class="wrap"><p><!-- TODO reactivate TOC once JBake moves to flexmark-java --> </p> <p>See also <a href="/documentation/the-sling-engine/url-to-script-resolution.html">URL to Script Resolution</a> which explains how Sling maps URLs to a script or and servlet.</p> <h2><a href="#servlet-registration" name="servlet-registration">Servlet Registration</a></h2> @@ -230,7 +232,9 @@ sling.servlet.extensions = [ "html", "txt", "json" <p>In this case, the servlet is only selected for processing the current request if its <code>accept</code> method returns true.</p> <p>While an opting servlet seems to be a nice way of picking the right servlet to process the request, the use of an opting servlet is not recommended: the main reason is that it complicates the request processing, makes it less transparent what is going on during a request and prevents optimizations like caching the script resolution in an optimal manner. The other static options are usually sufficient for all use cases.</p> <h2><a href="#error-handler-servlet-s-or-scripts" name="error-handler-servlet-s-or-scripts">Error Handler Servlet(s) or Scripts</a></h2> -<p>Error handling support is described on the <a href="/documentation/the-sling-engine/errorhandling.html">Errorhandling</a> page.</p></section></div></div> +<p>Error handling support is described on the <a href="/documentation/the-sling-engine/errorhandling.html">Errorhandling</a> page.</p></section></div></div> +<div class="revisionInfo">Last modified by <span class="author">Bertrand Delacretaz</span> on <a href="https://github.com/apache/sling-site/commit/3d5fdfe">Fri Sep 29 15:36:08 2017 +0200</a> : <span class="comment">First shot at adding some tags +</span></div> <div class="footer"> <div class="trademarkFooter"> Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners. http://git-wip-us.apache.org/repos/asf/sling-site/blob/47a72f1d/documentation/the-sling-engine/sling-api-crud-support.html ---------------------------------------------------------------------- diff --git a/documentation/the-sling-engine/sling-api-crud-support.html b/documentation/the-sling-engine/sling-api-crud-support.html index 2835bc3..cc24111 100644 --- a/documentation/the-sling-engine/sling-api-crud-support.html +++ b/documentation/the-sling-engine/sling-api-crud-support.html @@ -72,7 +72,9 @@ </div> <div class="main"> <div class="breadcrumbs"><a href="/">Home</a> » <a href="/documentation.html">Documentation</a> » <a href="/documentation/the-sling-engine.html">The Sling Engine</a> » </div> <h1 class="pagetitle"> Sling API CRUD Support - </h1><div class="tags"><a href="/tags/api.html" class="label">api</a> <a href="/tags/core.html" class="label">core</a> </div><div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script><div class="row"><div class="small-12 columns"><section class="wrap"><p><!-- TODO reactivate TOC once JBake moves to flexmark-java --> + </h1><div class="tags"><a href="/tags/api.html" class="label">api</a> <a href="/tags/core.html" class="label">core</a> </div> +<div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script> +<div class="row"><div class="small-12 columns"><section class="wrap"><p><!-- TODO reactivate TOC once JBake moves to flexmark-java --> </p> <h2><a href="#apache-sling-api-support" name="apache-sling-api-support">Apache Sling API Support</a></h2> <p>As of version 2.3.0, the Sling API provides full Create Read Update Delete (CRUD) features. CRUD support is provided by the addition of the following methods to the ResourceResolver:</p> @@ -203,7 +205,9 @@ resourceResolver.commit(); <li><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html">Boolean</a></li> <li><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html">String</a></li> </ul> -<p>As well as the corresponding primitive types. Any object which implements the Serializable interface will be serialized and the result of the serialization will be saved as a binary value for the property.</p></section></div></div> +<p>As well as the corresponding primitive types. Any object which implements the Serializable interface will be serialized and the result of the serialization will be saved as a binary value for the property.</p></section></div></div> +<div class="revisionInfo">Last modified by <span class="author">Bertrand Delacretaz</span> on <a href="https://github.com/apache/sling-site/commit/3d5fdfe">Fri Sep 29 15:36:08 2017 +0200</a> : <span class="comment">First shot at adding some tags +</span></div> <div class="footer"> <div class="trademarkFooter"> Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners. http://git-wip-us.apache.org/repos/asf/sling-site/blob/47a72f1d/documentation/the-sling-engine/sling-properties.html ---------------------------------------------------------------------- diff --git a/documentation/the-sling-engine/sling-properties.html b/documentation/the-sling-engine/sling-properties.html index b802fe0..258e6da 100644 --- a/documentation/the-sling-engine/sling-properties.html +++ b/documentation/the-sling-engine/sling-properties.html @@ -72,7 +72,9 @@ </div> <div class="main"> <div class="breadcrumbs"><a href="/">Home</a> » <a href="/documentation.html">Documentation</a> » <a href="/documentation/the-sling-engine.html">The Sling Engine</a> » </div> <h1 class="pagetitle"> Well-known Sling Properties - </h1><div class="tags"><a href="/tags/core.html" class="label">core</a> <a href="/tags/configuration.html" class="label">configuration</a> </div><div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script><div class="row"><div class="small-12 columns"><section class="wrap"><p>This table lists properties which have known functionality in the OSGi and Sling frameworks.</p> + </h1><div class="tags"><a href="/tags/core.html" class="label">core</a> <a href="/tags/configuration.html" class="label">configuration</a> </div> +<div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script> +<div class="row"><div class="small-12 columns"><section class="wrap"><p>This table lists properties which have known functionality in the OSGi and Sling frameworks.</p> <p>With the exception of the Sling setup properties (<code>sling.home</code>, <code>sling.launchpad</code>, and <code>sling.properties</code>) all properties can be set on the command line using the <code>-D</code> command line option or in the <code>sling.properties</code> file. Properties defined on the command line or in the <code>web.xml</code> file always overwrite properties in the <code>sling.properties</code> file.</p> <p><!-- TODO reactivate TOC once JBake moves to flexmark-java --> </p> @@ -195,7 +197,9 @@ <td>The port to listen on for HTTP requests. This property requires support by the Http Service bundle. </td> </tr> </tbody> -</table></section></div></div> +</table></section></div></div> +<div class="revisionInfo">Last modified by <span class="author">Bertrand Delacretaz</span> on <a href="https://github.com/apache/sling-site/commit/3d5fdfe">Fri Sep 29 15:36:08 2017 +0200</a> : <span class="comment">First shot at adding some tags +</span></div> <div class="footer"> <div class="trademarkFooter"> Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners. http://git-wip-us.apache.org/repos/asf/sling-site/blob/47a72f1d/documentation/the-sling-engine/the-sling-launchpad.html ---------------------------------------------------------------------- diff --git a/documentation/the-sling-engine/the-sling-launchpad.html b/documentation/the-sling-engine/the-sling-launchpad.html index 59e4b6d..a56c169 100644 --- a/documentation/the-sling-engine/the-sling-launchpad.html +++ b/documentation/the-sling-engine/the-sling-launchpad.html @@ -72,7 +72,9 @@ </div> <div class="main"> <div class="breadcrumbs"><a href="/">Home</a> » <a href="/documentation.html">Documentation</a> » <a href="/documentation/the-sling-engine.html">The Sling Engine</a> » </div> <h1 class="pagetitle"> The Sling Launchpad - </h1><div class="tags"><a href="/tags/launchpad.html" class="label">launchpad</a> </div><div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script><div class="row"><div class="small-12 columns"><section class="wrap"><p><!-- TODO reactivate TOC once JBake moves to flexmark-java --> + </h1><div class="tags"><a href="/tags/launchpad.html" class="label">launchpad</a> </div> +<div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script> +<div class="row"><div class="small-12 columns"><section class="wrap"><p><!-- TODO reactivate TOC once JBake moves to flexmark-java --> </p> <p>This tries to explain how exactly the Sling Launchpad works, what constitutes the Sling Launchpad and how you can use the Sling Launchpad to custom create you Sling launchers. For a view behind the scenes of the Sling Launchpad Base module (the actual launcher) you might want to refer to the <a href="/documentation/development/embedding-sling.html">Embedding Sling</a> page.</p> <h2><a href="#sling-home" name="sling-home">Sling Home</a></h2> @@ -306,7 +308,9 @@ Connection closed by foreign host. <li><code>oak</code>: configures and starts up an Apache Jackrabbit Oak repository implementation with a SegmentNodeStore ( TarMK ) implementation</li> <li><code>oak,oak_mongo</code>: configures and starts up an Apache Jackrabbit Oak repository implementation with a DocumentNodeStore implementation connected to a MongoDB database. The default configuration points to a MongoDB instance at mongodb://localhost:27017 and a database named sling.</li> </ul> -<p>That's it. The resulting artifact may be directly used to launch the Standalone Java Application or may directly be deployed into any Servlet API 3.0 (or later) compliant servlet container.</p></section></div></div> +<p>That's it. The resulting artifact may be directly used to launch the Standalone Java Application or may directly be deployed into any Servlet API 3.0 (or later) compliant servlet container.</p></section></div></div> +<div class="revisionInfo">Last modified by <span class="author">Bertrand Delacretaz</span> on <a href="https://github.com/apache/sling-site/commit/3d5fdfe">Fri Sep 29 15:36:08 2017 +0200</a> : <span class="comment">First shot at adding some tags +</span></div> <div class="footer"> <div class="trademarkFooter"> Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners. http://git-wip-us.apache.org/repos/asf/sling-site/blob/47a72f1d/documentation/the-sling-engine/url-decomposition.html ---------------------------------------------------------------------- diff --git a/documentation/the-sling-engine/url-decomposition.html b/documentation/the-sling-engine/url-decomposition.html index b4b4fde..0b57ee9 100644 --- a/documentation/the-sling-engine/url-decomposition.html +++ b/documentation/the-sling-engine/url-decomposition.html @@ -72,7 +72,9 @@ </div> <div class="main"> <div class="breadcrumbs"><a href="/">Home</a> » <a href="/documentation.html">Documentation</a> » <a href="/documentation/the-sling-engine.html">The Sling Engine</a> » </div> <h1 class="pagetitle"> URL decomposition - </h1><div class="tags"><a href="/tags/core.html" class="label">core</a> <a href="/tags/urls.html" class="label">urls</a> </div><div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script><div class="row"><div class="small-12 columns"><section class="wrap"><p><!-- TODO reactivate TOC once JBake moves to flexmark-java --> + </h1><div class="tags"><a href="/tags/core.html" class="label">core</a> <a href="/tags/urls.html" class="label">urls</a> </div> +<div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script> +<div class="row"><div class="small-12 columns"><section class="wrap"><p><!-- TODO reactivate TOC once JBake moves to flexmark-java --> </p> <h1><a href="#overview" name="overview">Overview</a></h1> <p>During the <em>Resource Resolution</em> step, the client request URI (as being returned by [HttpServletRequest.getRequestURI()](http://docs.oracle.com/javaee/6/api/javax/servlet/http/HttpServletRequest.html#getRequestURI())) is decomposed into the following parts (in exactly this order):</p> @@ -218,7 +220,9 @@ <li><a href="http://svn.apache.org/repos/asf/sling/trunk/bundles/resourceresolver/src/test/java/org/apache/sling/resourceresolver/impl/ResourceResolverImplTest.java">ResourceResolverImplTest</a> shows the split between resource path and the rest. Mostly in the method <code>testBasicAPIAssumptions</code>.</li> <li><a href="http://svn.apache.org/repos/asf/sling/trunk/bundles/engine/src/test/java/org/apache/sling/engine/impl/request/SlingRequestPathInfoTest.java">SlingRequestPathInfoTest</a> demonstrates the decomposition after the resource path part.</li> </ul> -<p>Feel free to suggest additional tests that help clarify how this works!</p></section></div></div> +<p>Feel free to suggest additional tests that help clarify how this works!</p></section></div></div> +<div class="revisionInfo">Last modified by <span class="author">Bertrand Delacretaz</span> on <a href="https://github.com/apache/sling-site/commit/3d5fdfe">Fri Sep 29 15:36:08 2017 +0200</a> : <span class="comment">First shot at adding some tags +</span></div> <div class="footer"> <div class="trademarkFooter"> Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners. http://git-wip-us.apache.org/repos/asf/sling-site/blob/47a72f1d/documentation/the-sling-engine/url-to-script-resolution.html ---------------------------------------------------------------------- diff --git a/documentation/the-sling-engine/url-to-script-resolution.html b/documentation/the-sling-engine/url-to-script-resolution.html index a1ca57e..75dd6c0 100644 --- a/documentation/the-sling-engine/url-to-script-resolution.html +++ b/documentation/the-sling-engine/url-to-script-resolution.html @@ -72,7 +72,9 @@ </div> <div class="main"> <div class="breadcrumbs"><a href="/">Home</a> » <a href="/documentation.html">Documentation</a> » <a href="/documentation/the-sling-engine.html">The Sling Engine</a> » </div> <h1 class="pagetitle"> URL to Script Resolution - </h1><div class="tags"><a href="/tags/core.html" class="label">core</a> <a href="/tags/scriptresolver.html" class="label">scriptresolver</a> <a href="/tags/urls.html" class="label">urls</a> </div><div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script><div class="row"><div class="small-12 columns"><section class="wrap"><p><!-- TODO reactivate TOC once JBake moves to flexmark-java --> + </h1><div class="tags"><a href="/tags/core.html" class="label">core</a> <a href="/tags/scriptresolver.html" class="label">scriptresolver</a> <a href="/tags/urls.html" class="label">urls</a> </div> +<div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script> +<div class="row"><div class="small-12 columns"><section class="wrap"><p><!-- TODO reactivate TOC once JBake moves to flexmark-java --> </p> <p>This page explains how Sling maps URLs to a script or and servlet. </p> <p>See also <a href="/documentation/the-sling-engine/servlets.html">Servlets and Scripts</a> which provides detailed info about how to register servlets.</p> @@ -145,7 +147,9 @@ while (type != null) { <li>(7) a4.html.esp</li> <li>(8) a4/print.html.esp</li> </ul> -<p>The priority of script selection would be (starting with the best one): (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. (7) is not a candidate because it does not include the first selector (print) and (8) is not a candidate because it has the wrong order of selectors.</p></section></div></div> +<p>The priority of script selection would be (starting with the best one): (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. (7) is not a candidate because it does not include the first selector (print) and (8) is not a candidate because it has the wrong order of selectors.</p></section></div></div> +<div class="revisionInfo">Last modified by <span class="author">Bertrand Delacretaz</span> on <a href="https://github.com/apache/sling-site/commit/3d5fdfe">Fri Sep 29 15:36:08 2017 +0200</a> : <span class="comment">First shot at adding some tags +</span></div> <div class="footer"> <div class="trademarkFooter"> Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners. http://git-wip-us.apache.org/repos/asf/sling-site/blob/47a72f1d/documentation/the-sling-engine/wrap-or-decorate-resources.html ---------------------------------------------------------------------- diff --git a/documentation/the-sling-engine/wrap-or-decorate-resources.html b/documentation/the-sling-engine/wrap-or-decorate-resources.html index 351ebcf..ab8370d 100644 --- a/documentation/the-sling-engine/wrap-or-decorate-resources.html +++ b/documentation/the-sling-engine/wrap-or-decorate-resources.html @@ -72,7 +72,9 @@ </div> <div class="main"> <div class="breadcrumbs"><a href="/">Home</a> » <a href="/documentation.html">Documentation</a> » <a href="/documentation/the-sling-engine.html">The Sling Engine</a> » </div> <h1 class="pagetitle"> Wrap or Decorate Resources - </h1><div class="tags"><a href="/tags/resources.html" class="label">resources</a> </div><div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script><div class="row"><div class="small-12 columns"><section class="wrap"><h2><a href="#introduction" name="introduction">Introduction</a></h2> + </h1><div class="tags"><a href="/tags/resources.html" class="label">resources</a> </div> +<div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script> +<div class="row"><div class="small-12 columns"><section class="wrap"><h2><a href="#introduction" name="introduction">Introduction</a></h2> <p>The Sling API provides an easy way to wrap or decorate a resource before returning. Use cases for this could for example be * overwrite resource type/resource super type (for example based on the resource path) * add metadata</p> <p>## </p> <p>To add a resource decorator just register one or more services which implement the interface <code>ResourceDecorator</code></p> @@ -91,7 +93,9 @@ return this.decorate(resource); } </code></pre> -<p>And use some other mechanism (e.g. a <code>ThreadLocal</code>) to obtain the current request if necessary.</p></section></div></div> +<p>And use some other mechanism (e.g. a <code>ThreadLocal</code>) to obtain the current request if necessary.</p></section></div></div> +<div class="revisionInfo">Last modified by <span class="author">Bertrand Delacretaz</span> on <a href="https://github.com/apache/sling-site/commit/3d5fdfe">Fri Sep 29 15:36:08 2017 +0200</a> : <span class="comment">First shot at adding some tags +</span></div> <div class="footer"> <div class="trademarkFooter"> Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners. http://git-wip-us.apache.org/repos/asf/sling-site/blob/47a72f1d/documentation/tutorials-how-tos.html ---------------------------------------------------------------------- diff --git a/documentation/tutorials-how-tos.html b/documentation/tutorials-how-tos.html index 91e2b10..78ae613 100644 --- a/documentation/tutorials-how-tos.html +++ b/documentation/tutorials-how-tos.html @@ -72,14 +72,18 @@ </div> <div class="main"> <div class="breadcrumbs"><a href="/">Home</a> » <a href="/documentation.html">Documentation</a> » </div> <h1 class="pagetitle"> Tutorials & How-Tos - </h1><div class="tags"><a href="/tags/tutorials.html" class="label">tutorials</a> </div><div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script><div class="row"><div class="small-12 columns"><section class="wrap"><ul> + </h1><div class="tags"><a href="/tags/tutorials.html" class="label">tutorials</a> </div> +<div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script> +<div class="row"><div class="small-12 columns"><section class="wrap"><ul> <li><a href="tutorials-how-tos/46-line-blog.html">46 Line Blog</a></li> <li><a href="tutorials-how-tos/getting-resources-and-properties-in-sling.html">Getting Resources and Properties in Sling</a></li> <li><a href="tutorials-how-tos/how-to-manage-events-in-sling.html">How to Manage Jobs in Sling</a></li> <li><a href="tutorials-how-tos/installing-and-upgrading-bundles.html">Installing and Upgrading Bundles</a></li> <li><a href="tutorials-how-tos/jackrabbit-persistence.html">Jackrabbit Persistence</a></li> <li><a href="tutorials-how-tos/testing-sling-based-applications.html">Testing Sling-based applications</a></li> -</ul></section></div></div> +</ul></section></div></div> +<div class="revisionInfo">Last modified by <span class="author">Bertrand Delacretaz</span> on <a href="https://github.com/apache/sling-site/commit/ab134cc">Fri Sep 29 15:57:01 2017 +0200</a> : <span class="comment">Quick pass at adding tags to all pages - probably needs refining +</span></div> <div class="footer"> <div class="trademarkFooter"> Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners. http://git-wip-us.apache.org/repos/asf/sling-site/blob/47a72f1d/documentation/tutorials-how-tos/46-line-blog.html ---------------------------------------------------------------------- diff --git a/documentation/tutorials-how-tos/46-line-blog.html b/documentation/tutorials-how-tos/46-line-blog.html index 0ad717a..0e0fe59 100644 --- a/documentation/tutorials-how-tos/46-line-blog.html +++ b/documentation/tutorials-how-tos/46-line-blog.html @@ -72,7 +72,9 @@ </div> <div class="main"> <div class="breadcrumbs"><a href="/">Home</a> » <a href="/documentation.html">Documentation</a> » <a href="/documentation/tutorials-how-tos.html">Tutorials & How-Tos</a> » </div> <h1 class="pagetitle"> 46 Line Blog - </h1><div class="tags"><a href="/tags/tutorial.html" class="label">tutorial</a> </div><div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script><div class="row"><div class="small-12 columns"><section class="wrap"><p>This tutorial is based on the first <em>Sling Gems</em> on dev.day.com: The <a href="http://dev.day.com/microsling/content/blogs/main/sling-46-lines-blog.html">Sling gems: a blog in 46 lines of code</a>. It has slightly been adapted to fit here.</p> + </h1><div class="tags"><a href="/tags/tutorial.html" class="label">tutorial</a> </div> +<div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script> +<div class="row"><div class="small-12 columns"><section class="wrap"><p>This tutorial is based on the first <em>Sling Gems</em> on dev.day.com: The <a href="http://dev.day.com/microsling/content/blogs/main/sling-46-lines-blog.html">Sling gems: a blog in 46 lines of code</a>. It has slightly been adapted to fit here.</p> <p>In this tutorial, the SlingPostServlet and the sling.js library are brought together using 46 (no kidding: <em>fourty-six</em>) lines of code to create a simple blog (or let's say <em>bloggish</em>) application.</p> <p>I used this example in my <a href="http://www.slideshare.net/bdelacretaz/rapid-jcr-applications-development-with-sling-1196003">Rapid JCR application development with Apache Sling</a> presentation at ApacheCon US 09 in Oakland (slides will be available soon), and I think it's a good testimony to the power and simplicity of Sling.</p> <h2><a href="#audience" name="audience">Audience</a></h2> @@ -171,7 +173,9 @@ If you get an error saying _javax.jcr.AccessDeniedException: ...not allowed to a <p>To keep things simple, we'll refrain from adding ESP-based features at this point, but you can of course use any ESP code in the <em>blog.esp</em> "script".</p> <h2><a href="#that-s-the-power-of-sling" name="that-s-the-power-of-sling">That's the power of Sling</a></h2> <p>The 46-line blog is a good example of the power of Sling. It leverages the <a href="/documentation/bundles/manipulating-content-the-slingpostservlet-servlets-post.html">SlingPostServlet</a>, which handles POST requests in a form-friendly way, and the <a href="http://svn.apache.org/repos/asf/sling/trunk/bundles/servlets/post/src/main/resources/system/sling.js"><code>sling.js</code></a> client library, which provides high-level functionality on the client side.</p> -<p>///Footnotes Go Here///</p></section></div></div> +<p>///Footnotes Go Here///</p></section></div></div> +<div class="revisionInfo">Last modified by <span class="author">Bertrand Delacretaz</span> on <a href="https://github.com/apache/sling-site/commit/ab134cc">Fri Sep 29 15:57:01 2017 +0200</a> : <span class="comment">Quick pass at adding tags to all pages - probably needs refining +</span></div> <div class="footer"> <div class="trademarkFooter"> Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners. http://git-wip-us.apache.org/repos/asf/sling-site/blob/47a72f1d/documentation/tutorials-how-tos/getting-resources-and-properties-in-sling.html ---------------------------------------------------------------------- diff --git a/documentation/tutorials-how-tos/getting-resources-and-properties-in-sling.html b/documentation/tutorials-how-tos/getting-resources-and-properties-in-sling.html index 260461e..5e24996 100644 --- a/documentation/tutorials-how-tos/getting-resources-and-properties-in-sling.html +++ b/documentation/tutorials-how-tos/getting-resources-and-properties-in-sling.html @@ -72,7 +72,9 @@ </div> <div class="main"> <div class="breadcrumbs"><a href="/">Home</a> » <a href="/documentation.html">Documentation</a> » <a href="/documentation/tutorials-how-tos.html">Tutorials & How-Tos</a> » </div> <h1 class="pagetitle"> Getting Resources and Properties in Sling - </h1><div class="tags"><a href="/tags/resources.html" class="label">resources</a> </div><div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script><div class="row"><div class="small-12 columns"><section class="wrap"><p>The Resource is one of the central parts of Sling. Extending from JCR's Everything is Content, Sling assumes Everthing is a Resource. Thus Sling is maintaining a virtual tree of resources, which is a merger of the actual contents in the JCR Repository and resources provided by so called resource providers. By doing this Sling fits very well in the paradigm of the REST architecture.</p> + </h1><div class="tags"><a href="/tags/resources.html" class="label">resources</a> </div> +<div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script> +<div class="row"><div class="small-12 columns"><section class="wrap"><p>The Resource is one of the central parts of Sling. Extending from JCR's Everything is Content, Sling assumes Everthing is a Resource. Thus Sling is maintaining a virtual tree of resources, which is a merger of the actual contents in the JCR Repository and resources provided by so called resource providers. By doing this Sling fits very well in the paradigm of the REST architecture.</p> <p>In this article we will explore a few ways to programmatically map a resource path (String) to a resource object (Resource) and its properties in Sling, from within an OSGI service, a servlet and a JSP.</p> <p>The whole game consists in first getting a <code>ResourceResolver</code> and then getting the <code>Resource</code> itself.</p> <h2><a href="#within-an-osgi-service-compoment" name="within-an-osgi-service-compoment">Within an OSGI Service/Compoment</a></h2> @@ -129,7 +131,9 @@ ValueMap properties = ResourceUtil.getValueMap(res); <p>Then, to access a specific String property called <code>propName</code>:</p> <pre><code><!-- TODO syntax marker (#!java) disabled -->String rule = properties.get(propName, (String) null); </code></pre> -<p>For more details about resources and how to access them in Sling, you can refer to the <a href="/documentation/the-sling-engine/resources.html">Sling documentation about Resources</a>.</p></section></div></div> +<p>For more details about resources and how to access them in Sling, you can refer to the <a href="/documentation/the-sling-engine/resources.html">Sling documentation about Resources</a>.</p></section></div></div> +<div class="revisionInfo">Last modified by <span class="author">Bertrand Delacretaz</span> on <a href="https://github.com/apache/sling-site/commit/ab134cc">Fri Sep 29 15:57:01 2017 +0200</a> : <span class="comment">Quick pass at adding tags to all pages - probably needs refining +</span></div> <div class="footer"> <div class="trademarkFooter"> Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners. http://git-wip-us.apache.org/repos/asf/sling-site/blob/47a72f1d/documentation/tutorials-how-tos/how-to-manage-events-in-sling.html ---------------------------------------------------------------------- diff --git a/documentation/tutorials-how-tos/how-to-manage-events-in-sling.html b/documentation/tutorials-how-tos/how-to-manage-events-in-sling.html index 60b2ac1..315a263 100644 --- a/documentation/tutorials-how-tos/how-to-manage-events-in-sling.html +++ b/documentation/tutorials-how-tos/how-to-manage-events-in-sling.html @@ -72,7 +72,9 @@ </div> <div class="main"> <div class="breadcrumbs"><a href="/">Home</a> » <a href="/documentation.html">Documentation</a> » <a href="/documentation/tutorials-how-tos.html">Tutorials & How-Tos</a> » </div> <h1 class="pagetitle"> How to Manage Jobs in Sling - </h1><div class="tags"><a href="/tags/jobs.html" class="label">jobs</a> </div><div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script><div class="row"><div class="small-12 columns"><section class="wrap"><p>Apache Sling supports the execution of jobs with the guarantee of processing the job at least once. This can be seen as an extensions of the OSGi event admin, although jobs are not started or processed by OSGi events leveraging the OSGi event admin.</p> + </h1><div class="tags"><a href="/tags/jobs.html" class="label">jobs</a> </div> +<div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script> +<div class="row"><div class="small-12 columns"><section class="wrap"><p>Apache Sling supports the execution of jobs with the guarantee of processing the job at least once. This can be seen as an extensions of the OSGi event admin, although jobs are not started or processed by OSGi events leveraging the OSGi event admin.</p> <p>For more details please refer to the following resources:</p> <ul> <li><a href="/documentation/bundles/apache-sling-eventing-and-job-handling.html">Eventing and Job Handling</a> to get detailed information on the eventing mechanisms in Sling.</li> @@ -238,7 +240,9 @@ private final static String OTHER_PATH = "/dropbox/other/"; } } </code></pre> -<p>The complete code for the <strong>DropBoxEventHandler</strong> service is available <a href="DropBoxEventHandler.java">here</a>.</p></section></div></div> +<p>The complete code for the <strong>DropBoxEventHandler</strong> service is available <a href="DropBoxEventHandler.java">here</a>.</p></section></div></div> +<div class="revisionInfo">Last modified by <span class="author">Bertrand Delacretaz</span> on <a href="https://github.com/apache/sling-site/commit/ab134cc">Fri Sep 29 15:57:01 2017 +0200</a> : <span class="comment">Quick pass at adding tags to all pages - probably needs refining +</span></div> <div class="footer"> <div class="trademarkFooter"> Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners. http://git-wip-us.apache.org/repos/asf/sling-site/blob/47a72f1d/documentation/tutorials-how-tos/installing-and-upgrading-bundles.html ---------------------------------------------------------------------- diff --git a/documentation/tutorials-how-tos/installing-and-upgrading-bundles.html b/documentation/tutorials-how-tos/installing-and-upgrading-bundles.html index 9495728..4283782 100644 --- a/documentation/tutorials-how-tos/installing-and-upgrading-bundles.html +++ b/documentation/tutorials-how-tos/installing-and-upgrading-bundles.html @@ -72,7 +72,9 @@ </div> <div class="main"> <div class="breadcrumbs"><a href="/">Home</a> » <a href="/documentation.html">Documentation</a> » <a href="/documentation/tutorials-how-tos.html">Tutorials & How-Tos</a> » </div> <h1 class="pagetitle"> Installing and Upgrading Bundles - </h1><div class="tags"><a href="/tags/operations.html" class="label">operations</a> <a href="/tags/bundles.html" class="label">bundles</a> </div><div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script><div class="row"><div class="small-12 columns"><section class="wrap"><div class="note"> + </h1><div class="tags"><a href="/tags/operations.html" class="label">operations</a> <a href="/tags/bundles.html" class="label">bundles</a> </div> +<div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script> +<div class="row"><div class="small-12 columns"><section class="wrap"><div class="note"> We recommend to use the Apache Felix Web Console. The documentation below describes the old Sling Management Console, which isn't in use any more. Please refer to the documentation of the <a href="http://felix.apache.org/site/apache-felix-web-console.html">Apache Felix Web Console</a>. </div> <p>OSGi bundles installed in the OSGi framework, which is provided by Sling, may be upgraded or removed and new bundles may be installed by using the Sling Management Console. This page is about using the Sling Management Console for those tasks.</p> @@ -106,7 +108,9 @@ We recommend to use the Apache Felix Web Console. The documentation below descri <p>For example, if you run Sling on <code>http://localhost:7402/sample</code> with default location of the Sling Management Console, the following request would add a repository at <code>/tmp/repo/repository.xml</code> in the filesystem:</p> <pre><code>http://localhost:7402/sample/system/console/bundlerepo?action=refreshOBR&repository=file:///tmp/repo/repository.xml </code></pre> -<p>Note: Only use <code>file:</code> URLs if you know Sling has access to the named file !</p></section></div></div> +<p>Note: Only use <code>file:</code> URLs if you know Sling has access to the named file !</p></section></div></div> +<div class="revisionInfo">Last modified by <span class="author">Bertrand Delacretaz</span> on <a href="https://github.com/apache/sling-site/commit/ab134cc">Fri Sep 29 15:57:01 2017 +0200</a> : <span class="comment">Quick pass at adding tags to all pages - probably needs refining +</span></div> <div class="footer"> <div class="trademarkFooter"> Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners. http://git-wip-us.apache.org/repos/asf/sling-site/blob/47a72f1d/documentation/tutorials-how-tos/jackrabbit-persistence.html ---------------------------------------------------------------------- diff --git a/documentation/tutorials-how-tos/jackrabbit-persistence.html b/documentation/tutorials-how-tos/jackrabbit-persistence.html index 2b30df7..aa5704d 100644 --- a/documentation/tutorials-how-tos/jackrabbit-persistence.html +++ b/documentation/tutorials-how-tos/jackrabbit-persistence.html @@ -72,7 +72,9 @@ </div> <div class="main"> <div class="breadcrumbs"><a href="/">Home</a> » <a href="/documentation.html">Documentation</a> » <a href="/documentation/tutorials-how-tos.html">Tutorials & How-Tos</a> » </div> <h1 class="pagetitle"> Jackrabbit Persistence - </h1><div class="tags"><a href="/tags/jcr.html" class="label">jcr</a> <a href="/tags/jackrabbit.html" class="label">jackrabbit</a> <a href="/tags/repository.html" class="label">repository</a> </div><div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script><div class="row"><div class="small-12 columns"><section class="wrap"><p>Out-of-the-box the embedded Jackrabbit repository used by Sling (the Embedded Jackrabbit Repository bundle) uses Derby to persist the JCR nodes and properties. For some applications or environments it may be required or required to replace Derby with another backing store such as PostgreSQL or Oracle.</p> + </h1><div class="tags"><a href="/tags/jcr.html" class="label">jcr</a> <a href="/tags/jackrabbit.html" class="label">jackrabbit</a> <a href="/tags/repository.html" class="label">repository</a> </div> +<div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script> +<div class="row"><div class="small-12 columns"><section class="wrap"><p>Out-of-the-box the embedded Jackrabbit repository used by Sling (the Embedded Jackrabbit Repository bundle) uses Derby to persist the JCR nodes and properties. For some applications or environments it may be required or required to replace Derby with another backing store such as PostgreSQL or Oracle.</p> <p>This page is based on the journey of Tony Giaccone to get Sling running with a PostgreSQL based Jackrabbit instance.</p> <h2><a href="#management-summary" name="management-summary">Management Summary</a></h2> <p>To replace Derby as the persistence manager for Jackrabbit the following steps are required:</p> @@ -151,7 +153,9 @@ $ mv postgresql-8.4-701.jdbc3.bar postgresql-8.4-701.jdbc3-bnd.jar <p>If you reconfigure Jackrabbit to use the new persistence manager, the existing repository data in the <code>sling/jackrabbit</code> directory, except the <code>repository.xml</code> file, of course, should now be removed.</p> <p>Finally either start Sling or start the Jackrabbit Embedded Repository bundle.</p> <h2><a href="#credits" name="credits">Credits</a></h2> -<p>This description is based on Tony Giaccone's description <a href="http://markmail.org/message/wlbfrukmjjsl33hh">Swapping Postgres for Derby</a> sent to the Sling Users mailing list.</p></section></div></div> +<p>This description is based on Tony Giaccone's description <a href="http://markmail.org/message/wlbfrukmjjsl33hh">Swapping Postgres for Derby</a> sent to the Sling Users mailing list.</p></section></div></div> +<div class="revisionInfo">Last modified by <span class="author">Bertrand Delacretaz</span> on <a href="https://github.com/apache/sling-site/commit/ab134cc">Fri Sep 29 15:57:01 2017 +0200</a> : <span class="comment">Quick pass at adding tags to all pages - probably needs refining +</span></div> <div class="footer"> <div class="trademarkFooter"> Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners. http://git-wip-us.apache.org/repos/asf/sling-site/blob/47a72f1d/documentation/tutorials-how-tos/testing-sling-based-applications.html ---------------------------------------------------------------------- diff --git a/documentation/tutorials-how-tos/testing-sling-based-applications.html b/documentation/tutorials-how-tos/testing-sling-based-applications.html index 7d59c24..3042eab 100644 --- a/documentation/tutorials-how-tos/testing-sling-based-applications.html +++ b/documentation/tutorials-how-tos/testing-sling-based-applications.html @@ -72,7 +72,9 @@ </div> <div class="main"> <div class="breadcrumbs"><a href="/">Home</a> » <a href="/documentation.html">Documentation</a> » <a href="/documentation/tutorials-how-tos.html">Tutorials & How-Tos</a> » </div> <h1 class="pagetitle"> Testing Sling-based applications - </h1><div class="tags"><a href="/tags/development.html" class="label">development</a> <a href="/tags/testing.html" class="label">testing</a> </div><div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script><div class="row"><div class="small-12 columns"><section class="wrap"><p>Automated testing of OSGi components and services can be challenging, as many of them depend on other services that must be present or simulated for testing.</p> + </h1><div class="tags"><a href="/tags/development.html" class="label">development</a> <a href="/tags/testing.html" class="label">testing</a> </div> +<div id="generatedToC"></div><script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script><script src='/res/tocjs-1-1-2.js' type='text/javascript'></script><script type='text/javascript'>$(document).ready(function() { $('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script> +<div class="row"><div class="small-12 columns"><section class="wrap"><p>Automated testing of OSGi components and services can be challenging, as many of them depend on other services that must be present or simulated for testing.</p> <p>This page describes the various approaches that we use to test Sling itself, and introduces a number of tools that can help testing OSGi and HTTP-based applications.</p> <p><!-- TODO reactivate TOC once JBake moves to flexmark-java --> </p> @@ -137,7 +139,9 @@ resolverField.set(servletResolver, factory); } </code></pre> <h2><a href="#summary" name="summary">Summary</a></h2> -<p>Combining the above testing techniques has worked well for us in creating and testing Sling. Being able to test things at different levels of integration has proved an efficient way to get good test coverage without having to write too much boring test code.</p></section></div></div> +<p>Combining the above testing techniques has worked well for us in creating and testing Sling. Being able to test things at different levels of integration has proved an efficient way to get good test coverage without having to write too much boring test code.</p></section></div></div> +<div class="revisionInfo">Last modified by <span class="author">Bertrand Delacretaz</span> on <a href="https://github.com/apache/sling-site/commit/ab134cc">Fri Sep 29 15:57:01 2017 +0200</a> : <span class="comment">Quick pass at adding tags to all pages - probably needs refining +</span></div> <div class="footer"> <div class="trademarkFooter"> Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners. http://git-wip-us.apache.org/repos/asf/sling-site/blob/47a72f1d/downloads.html ---------------------------------------------------------------------- diff --git a/downloads.html b/downloads.html index 94ff636..b64df6d 100644 --- a/downloads.html +++ b/downloads.html @@ -72,7 +72,9 @@ </div> <div class="main"> <breadcrumbs/><h1 class="pagetitle"> Downloads - </h1><tags/><tableOfContents/><div class="row"><div class="small-12 columns"><section class="wrap"><header><h1>Downloads</h1></header><p>To get the latest development release of Apache Sling, you can check out the Source Code and Getting and Building Sling yourself. Otherwise, the releases below are available for download. To install, just download and extract. The PGP keys at <a href="https://people.apache.org/keys/group/sling.asc">https://people.apache.org/keys/group/sling.asc</a> can be used to verify the integrity of the release archives.</p> + </h1><tags/> + <tableOfContents/> +<div class="row"><div class="small-12 columns"><section class="wrap"><header><h1>Downloads</h1></header><p>To get the latest development release of Apache Sling, you can check out the Source Code and Getting and Building Sling yourself. Otherwise, the releases below are available for download. To install, just download and extract. The PGP keys at <a href="https://people.apache.org/keys/group/sling.asc">https://people.apache.org/keys/group/sling.asc</a> can be used to verify the integrity of the release archives.</p> <p>All Apache Sling products are distributed under the terms of The Apache Software License (version 2.0). See our license, or the LICENSE file included in each distribution. </p> <p>TODO ToC ??</p> <h1><a href="#mirrors" name="mirrors">Mirrors</a></h1> @@ -531,7 +533,8 @@ </td><td><a href="[preferred]sling/htl-maven-plugin-1.0.8-source-release.zip">Source ZIP</a> (<a href="http://www.apache.org/dist/sling/htl-maven-plugin-1.0.8-source-release.zip.asc">asc</a>, <a href="http://www.apache.org/dist/sling/htl-maven-plugin-1.0.8-source-release.zip.md5">md5</a>) </td></tr><tr><td>Java Version Maven Plugin</td><td>1.0.0</td><td><a href="[preferred]sling/javaversion-maven-plugin-1.0.0.jar">Maven Plugin</a> (<a href="http://www.apache.org/dist/sling/javaversion-maven-plugin-1.0.0.jar.asc">asc</a>, <a href="http://www.apache.org/dist/sling/javaversion-maven-plugin-1.0.0.jar.md5">md5</a>) </td><td><a href="[preferred]sling/javaversion-maven-plugin-1.0.0-source-release.zip">Source ZIP</a> (<a href="http://www.apache.org/dist/sling/javaversion-maven-plugin-1.0.0-source-release.zip.asc">asc</a>, <a href="http://www.apache.org/dist/sling/javaversion-maven-plugin-1.0.0-source-release.zip.md5">md5</a>) - </td></tr></tbody></table></section></div></div> + </td></tr></tbody></table></section></div></div> + <lastModified/> <div class="footer"> <div class="trademarkFooter"> Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners. http://git-wip-us.apache.org/repos/asf/sling-site/blob/47a72f1d/feed.xml ---------------------------------------------------------------------- diff --git a/feed.xml b/feed.xml index 513ba35..1624b74 100644 --- a/feed.xml +++ b/feed.xml @@ -4,7 +4,7 @@ <link href="http://sling.apache.org/"/> <link rel="self" type="application/atom+xml" href="http://sling.apache.org/feed.xml"/> <subtitle>Work in progress...</subtitle> - <updated>2017-10-02T10:39:05Z</updated> + <updated>2017-10-02T12:05:27Z</updated> <id>tag:localhost,2017:10</id> </feed> \ No newline at end of file
