public class TestAutoLoginFilter extends Object implements javax.servlet.Filter
AutoLoginFilter.USER_PARAM_NAME.
There are no guarantees made that the user specified is a valid user in the system.
In rice this Filter can be used via config like that following assuming the bootstrap filter is used:
<param name="filter.login.class">org.kuali.kra.test.infrastructure.AutoLoginFilter</param>
<param name="filtermapping.login.1">/*</param>
<param name="filter.login.autouser">admin</param>
| Modifier and Type | Field and Description |
|---|---|
static String |
OVERRIDE_ID |
static String |
USER_PARAM_NAME |
| Constructor and Description |
|---|
TestAutoLoginFilter() |
public static final String USER_PARAM_NAME
public static String OVERRIDE_ID
public TestAutoLoginFilter()
public void init(javax.servlet.FilterConfig config) throws javax.servlet.ServletException
init in interface javax.servlet.Filterjavax.servlet.ServletExceptionpublic void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
doFilter in interface javax.servlet.FilterIOExceptionjavax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.FilterCopyright © 2004–2014 The Kuali Foundation. All rights reserved.