public class AutoLoginFilter extends Object implements javax.servlet.Filter
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 |
USER_PARAM_NAME |
| Constructor and Description |
|---|
AutoLoginFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain) |
void |
init(javax.servlet.FilterConfig config) |
public static final String USER_PARAM_NAME
public AutoLoginFilter()
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 © 2005–2018 The Kuali Foundation. All rights reserved.