You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ra...@apache.org on 2019/12/16 21:37:58 UTC
[sling-org-apache-sling-scripting-jsp] branch master updated:
SLING-8922 - Override all the PageContext methods and delegate to the
wrapped context
This is an automated email from the ASF dual-hosted git repository.
radu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-scripting-jsp.git
The following commit(s) were added to refs/heads/master by this push:
new 25aa5fb SLING-8922 - Override all the PageContext methods and delegate to the wrapped context
25aa5fb is described below
commit 25aa5fbaa954b0c7fc940c5c4a3fcb2f5ff03bc3
Author: Radu Cotescu <ra...@apache.org>
AuthorDate: Mon Dec 16 22:25:03 2019 +0100
SLING-8922 - Override all the PageContext methods and delegate to the wrapped context
---
.../org/apache/sling/scripting/jsp/SlingJspPageContext.java | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/src/main/java/org/apache/sling/scripting/jsp/SlingJspPageContext.java b/src/main/java/org/apache/sling/scripting/jsp/SlingJspPageContext.java
index ef5dd76..40f2fa9 100644
--- a/src/main/java/org/apache/sling/scripting/jsp/SlingJspPageContext.java
+++ b/src/main/java/org/apache/sling/scripting/jsp/SlingJspPageContext.java
@@ -19,6 +19,7 @@
package org.apache.sling.scripting.jsp;
import java.io.IOException;
+import java.io.Writer;
import java.util.Enumeration;
import javax.el.ELContext;
@@ -217,4 +218,14 @@ public class SlingJspPageContext extends PageContext {
public ErrorData getErrorData() {
return wrapped.getErrorData();
}
+
+ @Override
+ public JspWriter pushBody(Writer writer) {
+ return wrapped.pushBody(writer);
+ }
+
+ @Override
+ public JspWriter popBody() {
+ return wrapped.popBody();
+ }
}