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

cziegeler pushed a commit to branch issues/SLING-8742
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-api.git


The following commit(s) were added to refs/heads/issues/SLING-8742 by this push:
     new 3494c4c  SLING-8742 : Allow overriding the extension when using the 
RequestDispatcher
3494c4c is described below

commit 3494c4c4e9e29f8b746ceba2568901341360bf40
Author: Carsten Ziegeler <[email protected]>
AuthorDate: Wed Sep 29 17:52:55 2021 +0200

    SLING-8742 : Allow overriding the extension when using the RequestDispatcher
---
 .../java/org/apache/sling/api/request/RequestDispatcherOptions.java     | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/src/main/java/org/apache/sling/api/request/RequestDispatcherOptions.java 
b/src/main/java/org/apache/sling/api/request/RequestDispatcherOptions.java
index 720be44..b55509d 100644
--- a/src/main/java/org/apache/sling/api/request/RequestDispatcherOptions.java
+++ b/src/main/java/org/apache/sling/api/request/RequestDispatcherOptions.java
@@ -200,6 +200,8 @@ public class RequestDispatcherOptions extends 
HashMap<String, String> {
    /**
      * Sets the {@link #OPT_REPLACE_EXTENSION} option to the given
      * <code>replaceExtension</code> if not <code>null</code>.
+     * If this value contains an empty string, the original extension
+     * will be removed.
      * @param replaceExtension The replace extension
      */
     public void setReplaceExtension(String replaceExtension) {

Reply via email to