You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shiro.apache.org by lh...@apache.org on 2009/08/24 20:21:38 UTC
svn commit: r807329 -
/incubator/shiro/trunk/web/src/main/java/org/apache/shiro/web/servlet/ShiroFilter.java
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();