public class ForceLoginScreenTypeFilter
extends java.lang.Object
implements javax.servlet.Filter
Current known values are "mini" (mobile) and "text" (text only). Leave unset for the default.
If you have complex user agent needs then you can write your own filter and configure it
to set the attribute SSO_SCREEN_TYPE_KEY to "mini" when you want it to show a mobile
login screen. You might do some user agent sniffing to detect this.
(ForceLoginScreenTypeFilter was a bad name as it suggests it's something to do with ForceLoginFilter, or related to forcing login, which it is not.)
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SSO_SCREEN_TYPE_KEY |
| Constructor and Description |
|---|
ForceLoginScreenTypeFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain chain) |
java.lang.String |
getScreenType() |
void |
init(javax.servlet.FilterConfig config) |
void |
setScreenType(java.lang.String screenType) |
public static final java.lang.String SSO_SCREEN_TYPE_KEY
public void destroy()
destroy in interface javax.servlet.Filterpublic final void doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain chain)
throws java.io.IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.Filterjava.io.IOExceptionjavax.servlet.ServletExceptionpublic final void init(javax.servlet.FilterConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Filterjavax.servlet.ServletExceptionpublic final java.lang.String getScreenType()
public final void setScreenType(java.lang.String screenType)