[java-support] branch master updated: Add Servlet 3.1 support to request/response proxies.
Scott Cantor
cantor.2 at osu.edu
Thu Nov 8 10:23:58 EST 2018
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch master
in repository java-support.
View the commit online:
http://git.shibboleth.net/view/?p=java-support.git;a=commit;h=b2d9b1b85827b8393913a6e68c9171ae8ef614d3
The following commit(s) were added to refs/heads/master by this push:
new b2d9b1b Add Servlet 3.1 support to request/response proxies.
b2d9b1b is described below
commit b2d9b1b85827b8393913a6e68c9171ae8ef614d3
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu Nov 8 10:23:50 2018 -0500
Add Servlet 3.1 support to request/response proxies.
---
.../support/net/ThreadLocalHttpServletRequestProxy.java | 16 ++++++++++++++++
.../support/net/ThreadLocalHttpServletResponseProxy.java | 5 +++++
2 files changed, 21 insertions(+)
diff --git a/src/main/java/net/shibboleth/utilities/java/support/net/ThreadLocalHttpServletRequestProxy.java b/src/main/java/net/shibboleth/utilities/java/support/net/ThreadLocalHttpServletRequestProxy.java
index d6edb08..700f2a2 100644
--- a/src/main/java/net/shibboleth/utilities/java/support/net/ThreadLocalHttpServletRequestProxy.java
+++ b/src/main/java/net/shibboleth/utilities/java/support/net/ThreadLocalHttpServletRequestProxy.java
@@ -38,6 +38,7 @@ import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
+import javax.servlet.http.HttpUpgradeHandler;
import javax.servlet.http.Part;
import net.shibboleth.utilities.java.support.logic.Constraint;
@@ -380,6 +381,21 @@ public class ThreadLocalHttpServletRequestProxy implements HttpServletRequest {
return getCurrent().getPart(name);
}
+ /** {@inheritDoc} */
+ public long getContentLengthLong() {
+ return getCurrent().getContentLengthLong();
+ }
+
+ /** {@inheritDoc} */
+ public String changeSessionId() {
+ return getCurrent().changeSessionId();
+ }
+
+ /** {@inheritDoc} */
+ public <T extends HttpUpgradeHandler> T upgrade(final Class<T> handlerClass) throws IOException, ServletException {
+ return getCurrent().upgrade(handlerClass);
+ }
+
/**
* Get the current HttpServletRequest from ThreadLocal storage.
*
diff --git a/src/main/java/net/shibboleth/utilities/java/support/net/ThreadLocalHttpServletResponseProxy.java b/src/main/java/net/shibboleth/utilities/java/support/net/ThreadLocalHttpServletResponseProxy.java
index 1c66794..5577e45 100644
--- a/src/main/java/net/shibboleth/utilities/java/support/net/ThreadLocalHttpServletResponseProxy.java
+++ b/src/main/java/net/shibboleth/utilities/java/support/net/ThreadLocalHttpServletResponseProxy.java
@@ -217,6 +217,11 @@ public class ThreadLocalHttpServletResponseProxy implements HttpServletResponse
return getCurrent().getHeaderNames();
}
+ /** {@inheritDoc} */
+ public void setContentLengthLong(final long len) {
+ getCurrent().setContentLengthLong(len);
+ }
+
/**
* Get the current HttpServletResponse from ThreadLocal storage.
*
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list