shiro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lhazlew...@apache.org
Subject svn commit: r807329 - /incubator/shiro/trunk/web/src/main/java/org/apache/shiro/web/servlet/ShiroFilter.java
Date Mon, 24 Aug 2009 18:21:38 GMT
Author: lhazlewood
Date: Mon Aug 24 18:21:38 2009
New Revision: 807329

URL: http://svn.apache.org/viewvc?rev=807329&view=rev
Log:
ensured WebUtils binding works temporarily while the SubjectBuilder API is being flushed out

Modified:
    incubator/shiro/trunk/web/src/main/java/org/apache/shiro/web/servlet/ShiroFilter.java

Modified: incubator/shiro/trunk/web/src/main/java/org/apache/shiro/web/servlet/ShiroFilter.java
URL: http://svn.apache.org/viewvc/incubator/shiro/trunk/web/src/main/java/org/apache/shiro/web/servlet/ShiroFilter.java?rev=807329&r1=807328&r2=807329&view=diff
==============================================================================
--- incubator/shiro/trunk/web/src/main/java/org/apache/shiro/web/servlet/ShiroFilter.java
(original)
+++ incubator/shiro/trunk/web/src/main/java/org/apache/shiro/web/servlet/ShiroFilter.java
Mon Aug 24 18:21:38 2009
@@ -28,6 +28,7 @@
 import org.apache.shiro.util.LifecycleUtils;
 import static org.apache.shiro.util.StringUtils.clean;
 import org.apache.shiro.web.DefaultWebSecurityManager;
+import org.apache.shiro.web.WebUtils;
 import org.apache.shiro.web.config.IniWebConfiguration;
 import org.apache.shiro.web.config.WebConfiguration;
 import org.apache.shiro.web.subject.WebSubjectBuilder;
@@ -483,6 +484,10 @@
      * @since 1.0
      */
     protected WebThreadStateManager bind(ServletRequest request, ServletResponse response)
{
+        //TODO - remove when Builder/ThreadStateManager API is complete:
+        WebUtils.bind(request);
+        WebUtils.bind(response);
+
         Subject subject = new WebSubjectBuilder(getSecurityManager(), request, response).build();
         WebThreadStateManager threadState = new WebThreadStateManager(subject, request, response);
         threadState.bindThreadState();



Mime
View raw message