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 2023/02/03 18:51:25 UTC

[sling-org-apache-sling-servlets-get] branch feature/SLING-6790-clarify-extension-handling-for-enabled-renderers created (now b15e501)

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

kwin pushed a change to branch feature/SLING-6790-clarify-extension-handling-for-enabled-renderers
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-servlets-get.git


      at b15e501  SLING-6790 clarify effects of enabling certain renderers

This branch includes the following new commits:

     new b15e501  SLING-6790 clarify effects of enabling certain renderers

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[sling-org-apache-sling-servlets-get] 01/01: SLING-6790 clarify effects of enabling certain renderers

Posted by kw...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

kwin pushed a commit to branch feature/SLING-6790-clarify-extension-handling-for-enabled-renderers
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-servlets-get.git

commit b15e501be087fb456a7acd96f0c0ec9ee43bb4a9
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Fri Feb 3 19:51:18 2023 +0100

    SLING-6790 clarify effects of enabling certain renderers
    
    Outline that alias works irrespective of enablement of renderers (which
    only affect the default extension)
---
 .../org/apache/sling/servlets/get/impl/DefaultGetServlet.java | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/main/java/org/apache/sling/servlets/get/impl/DefaultGetServlet.java b/src/main/java/org/apache/sling/servlets/get/impl/DefaultGetServlet.java
index 091ca0e..5dc84e4 100644
--- a/src/main/java/org/apache/sling/servlets/get/impl/DefaultGetServlet.java
+++ b/src/main/java/org/apache/sling/servlets/get/impl/DefaultGetServlet.java
@@ -78,7 +78,8 @@ public class DefaultGetServlet extends SlingSafeMethodsServlet {
 
         @AttributeDefinition(name = "Extension Aliases",
                 description="The aliases can be used to map several extensions to a " +
-                            "single servlet. For instance \"xml:pdf,rtf\" maps the extensions \".pdf\" and " +
+                            "single servlet. This works irrespective if the renderer for the target extension is enabled or not. " +
+                            "For instance \"xml:pdf,rtf\" maps the extensions \".pdf\" and " +
                             "\".rtf\" to the servlet helper handling the \".xml\" extension.")
         String[] aliases();
 
@@ -107,19 +108,19 @@ public class DefaultGetServlet extends SlingSafeMethodsServlet {
         String[] index_files() default { "index","index.html" };
 
         @AttributeDefinition(name = "Enable HTML",
-                description = "Whether the renderer for HTML of the default GET servlet is enabled or not. By default the HTML renderer is enabled.")
+                description = "Whether the renderer for HTML of the default GET servlet is enabled for extension \"html\" or not. By default the HTML renderer is enabled.")
         boolean enable_html() default true;
 
         @AttributeDefinition(name = "Enable JSON",
-                description = "Whether the renderer for JSON of the default GET servlet is enabled or not. By default the JSON renderer is enabled.")
+                description = "Whether the renderer for JSON of the default GET servlet is enabled for extension \"json\" or not. By default the JSON renderer is enabled.")
         boolean enable_json() default true;
 
         @AttributeDefinition(name = "Enable Plain Text",
-                description = "Whether the renderer for plain text of the default GET servlet is enabled or not. By default the plain text renderer is enabled.")
+                description = "Whether the renderer for plain text of the default GET servlet is enabled for extension \"txt\" or not. By default the plain text renderer is enabled.")
         boolean enable_txt() default true;
 
         @AttributeDefinition(name = "Enable XML",
-                description = "Whether the renderer for XML of the default GET servlet is enabled or not. By default the XML renderer is enabled.")
+                description = "Whether the renderer for XML of the default GET servlet is enabled for extension \"xml\" or not. By default the XML renderer is enabled.")
         boolean enable_xml() default true;
 
         @AttributeDefinition(name = "JSON Max results",