SEC-539: Reformatted "divider" comments (//~ Methods=== etc). Simplified boolean expression in afterPropertiesSet.
This commit is contained in:
parent
d7cef1ba31
commit
5b7ed79b6a
|
@ -93,12 +93,10 @@ import org.springframework.util.ReflectionUtils;
|
||||||
*
|
*
|
||||||
* @author Ben Alex
|
* @author Ben Alex
|
||||||
* @author Patrick Burleson
|
* @author Patrick Burleson
|
||||||
* @version $Id: HttpSessionContextIntegrationFilter.java 1784 2007-02-24
|
* @version $Id$
|
||||||
* 21:00:24Z luke_t $
|
|
||||||
*/
|
*/
|
||||||
public class HttpSessionContextIntegrationFilter implements InitializingBean, Filter {
|
public class HttpSessionContextIntegrationFilter implements InitializingBean, Filter {
|
||||||
// ~ Static fields/initializers
|
//~ Static fields/initializers =====================================================================================
|
||||||
// =====================================================================================
|
|
||||||
|
|
||||||
protected static final Log logger = LogFactory.getLog(HttpSessionContextIntegrationFilter.class);
|
protected static final Log logger = LogFactory.getLog(HttpSessionContextIntegrationFilter.class);
|
||||||
|
|
||||||
|
@ -106,8 +104,7 @@ public class HttpSessionContextIntegrationFilter implements InitializingBean, Fi
|
||||||
|
|
||||||
public static final String ACEGI_SECURITY_CONTEXT_KEY = "ACEGI_SECURITY_CONTEXT";
|
public static final String ACEGI_SECURITY_CONTEXT_KEY = "ACEGI_SECURITY_CONTEXT";
|
||||||
|
|
||||||
// ~ Instance fields
|
//~ Instance fields ================================================================================================
|
||||||
// ================================================================================================
|
|
||||||
|
|
||||||
private Class context = SecurityContextImpl.class;
|
private Class context = SecurityContextImpl.class;
|
||||||
|
|
||||||
|
@ -168,8 +165,7 @@ public class HttpSessionContextIntegrationFilter implements InitializingBean, Fi
|
||||||
this.contextObject = generateNewContext();
|
this.contextObject = generateNewContext();
|
||||||
}
|
}
|
||||||
|
|
||||||
// ~ Methods
|
//~ Methods ========================================================================================================
|
||||||
// ========================================================================================================
|
|
||||||
|
|
||||||
public void afterPropertiesSet() throws Exception {
|
public void afterPropertiesSet() throws Exception {
|
||||||
if ((this.context == null) || (!SecurityContext.class.isAssignableFrom(this.context))) {
|
if ((this.context == null) || (!SecurityContext.class.isAssignableFrom(this.context))) {
|
||||||
|
@ -178,7 +174,7 @@ public class HttpSessionContextIntegrationFilter implements InitializingBean, Fi
|
||||||
+ ")");
|
+ ")");
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((forceEagerSessionCreation == true) && (allowSessionCreation == false)) {
|
if (forceEagerSessionCreation && !allowSessionCreation) {
|
||||||
throw new IllegalArgumentException(
|
throw new IllegalArgumentException(
|
||||||
"If using forceEagerSessionCreation, you must set allowSessionCreation to also be true");
|
"If using forceEagerSessionCreation, you must set allowSessionCreation to also be true");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue