You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by kw...@apache.org on 2018/06/21 13:31:11 UTC

[sling-org-apache-sling-api] branch feature/derived-resource-types updated: clarify servlet selector matching in the javadoc

This is an automated email from the ASF dual-hosted git repository.

kwin pushed a commit to branch feature/derived-resource-types
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-api.git


The following commit(s) were added to refs/heads/feature/derived-resource-types by this push:
     new 1232e9d  clarify servlet selector matching in the javadoc
1232e9d is described below

commit 1232e9def606afdaa207ca787ea1020b9aba199a
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Thu Jun 21 15:30:56 2018 +0200

    clarify servlet selector matching in the javadoc
---
 .../org/apache/sling/api/servlets/ServletResolverConstants.java  | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/main/java/org/apache/sling/api/servlets/ServletResolverConstants.java b/src/main/java/org/apache/sling/api/servlets/ServletResolverConstants.java
index 9ce3d08..878de9c 100644
--- a/src/main/java/org/apache/sling/api/servlets/ServletResolverConstants.java
+++ b/src/main/java/org/apache/sling/api/servlets/ServletResolverConstants.java
@@ -94,11 +94,12 @@ public final class ServletResolverConstants {
      * (value is "sling.servlet.selectors"). The selectors must be configured as
      * they would be specified in the URL that is as a list of dot-separated
      * strings such as <em>print.a4</em>.
+     * In case this is not empty the first selector(s) (i.e. the one(s) on the left) in the request URL must match, 
+     * otherwise the servlet is not executed. After that may follow arbitrarily many non-registered selectors.
      * <p>
-     * The type of this property is a String or String[] (array of strings)
-     * denoting the resource types. This property is ignored if the
-     * {@link #SLING_SERVLET_RESOURCE_TYPES} property is not set. Otherwise this property is
-     * optional and ignored if not set.
+     * The type of this property is a String or String[] (array of strings).
+     * This property is ignored if the {@link #SLING_SERVLET_RESOURCE_TYPES} property is not set. 
+     * Otherwise this property is optional and ignored if not set.
      */
     public static final String SLING_SERVLET_SELECTORS = "sling.servlet.selectors";