[utilities COMMIT] in /java-support/trunk: pom.xml src/main/java/net/shibboleth/utilities/java/support/net/ThreadLoca...

noreply at shibboleth.net noreply at shibboleth.net
Sun Dec 22 12:21:31 EST 2013


Author: iay
Date: Sun Dec 22 12:21:31 2013
New Revision: 489

URL: http://svn.shibboleth.net/view/utilities?rev=489&view=rev
Log:
JPAR-46 migrate to dependency on servlet 3.0.1

Modified:
    java-support/trunk/pom.xml
    java-support/trunk/src/main/java/net/shibboleth/utilities/java/support/net/ThreadLocalHttpServletRequestProxy.java
    java-support/trunk/src/main/java/net/shibboleth/utilities/java/support/net/ThreadLocalHttpServletResponseProxy.java

Modified: java-support/trunk/pom.xml
URL: http://svn.shibboleth.net/view/utilities/java-support/trunk/pom.xml?rev=489&r1=488&r2=489&view=diff
==============================================================================
--- java-support/trunk/pom.xml (original)
+++ java-support/trunk/pom.xml Sun Dec 22 12:21:31 2013
@@ -117,7 +117,7 @@
         <!-- Runtime Dependencies -->
         <dependency>
             <groupId>javax.servlet</groupId>
-            <artifactId>servlet-api</artifactId>
+            <artifactId>javax.servlet-api</artifactId>
         </dependency>
 
         <!-- Test Dependencies -->

Modified: java-support/trunk/src/main/java/net/shibboleth/utilities/java/support/net/ThreadLocalHttpServletRequestProxy.java
URL: http://svn.shibboleth.net/view/utilities/java-support/trunk/src/main/java/net/shibboleth/utilities/java/support/net/ThreadLocalHttpServletRequestProxy.java?rev=489&r1=488&r2=489&view=diff
==============================================================================
--- java-support/trunk/src/main/java/net/shibboleth/utilities/java/support/net/ThreadLocalHttpServletRequestProxy.java (original)
+++ java-support/trunk/src/main/java/net/shibboleth/utilities/java/support/net/ThreadLocalHttpServletRequestProxy.java Sun Dec 22 12:21:31 2013
@@ -21,15 +21,24 @@
 import java.io.IOException;
 import java.io.UnsupportedEncodingException;
 import java.security.Principal;
+import java.util.Collection;
 import java.util.Enumeration;
 import java.util.Locale;
 import java.util.Map;
 
+import javax.servlet.AsyncContext;
+import javax.servlet.DispatcherType;
 import javax.servlet.RequestDispatcher;
+import javax.servlet.ServletContext;
+import javax.servlet.ServletException;
 import javax.servlet.ServletInputStream;
+import javax.servlet.ServletRequest;
+import javax.servlet.ServletResponse;
 import javax.servlet.http.Cookie;
 import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
 import javax.servlet.http.HttpSession;
+import javax.servlet.http.Part;
 
 import net.shibboleth.utilities.java.support.logic.Constraint;
 
@@ -311,6 +320,66 @@
         return getCurrent().isRequestedSessionIdFromUrl();
     }
     
+    /** {@inheritDoc} */
+    public ServletContext getServletContext() {
+        return getCurrent().getServletContext();
+    }
+
+    /** {@inheritDoc} */
+    public AsyncContext startAsync() {
+        return getCurrent().startAsync();
+    }
+
+    /** {@inheritDoc} */
+    public AsyncContext startAsync(ServletRequest servletRequest, ServletResponse servletResponse) {
+        return getCurrent().startAsync(servletRequest, servletResponse);
+    }
+
+    /** {@inheritDoc} */
+    public boolean isAsyncStarted() {
+        return getCurrent().isAsyncStarted();
+    }
+
+    /** {@inheritDoc} */
+    public boolean isAsyncSupported() {
+        return getCurrent().isAsyncSupported();
+    }
+
+    /** {@inheritDoc} */
+    public AsyncContext getAsyncContext() {
+        return getCurrent().getAsyncContext();
+    }
+
+    /** {@inheritDoc} */
+    public DispatcherType getDispatcherType() {
+        return getCurrent().getDispatcherType();
+    }
+
+    /** {@inheritDoc} */
+    public boolean authenticate(HttpServletResponse response) throws IOException, ServletException {
+        return getCurrent().authenticate(response);
+    }
+
+    /** {@inheritDoc} */
+    public void login(String username, String password) throws ServletException {
+        getCurrent().login(username, password);
+    }
+
+    /** {@inheritDoc} */
+    public void logout() throws ServletException {
+        getCurrent().logout();
+    }
+
+    /** {@inheritDoc} */
+    public Collection<Part> getParts() throws IOException, ServletException {
+        return getCurrent().getParts();
+    }
+
+    /** {@inheritDoc} */
+    public Part getPart(String name) throws IOException, ServletException {
+        return getCurrent().getPart(name);
+    }
+
     /**
      * Get the current HttpServletRequest from ThreadLocal storage.
      * 

Modified: java-support/trunk/src/main/java/net/shibboleth/utilities/java/support/net/ThreadLocalHttpServletResponseProxy.java
URL: http://svn.shibboleth.net/view/utilities/java-support/trunk/src/main/java/net/shibboleth/utilities/java/support/net/ThreadLocalHttpServletResponseProxy.java?rev=489&r1=488&r2=489&view=diff
==============================================================================
--- java-support/trunk/src/main/java/net/shibboleth/utilities/java/support/net/ThreadLocalHttpServletResponseProxy.java (original)

[... 37 lines stripped ...]


More information about the commits mailing list