|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.adf.web.util.ADFSessionTimeoutFilter
public class ADFSessionTimeoutFilter
A Servlet filter which checks if the session has timed out or not. If it has timed out, then it redirects to the page specified by the "redirectPage" init parameter in the web.xml file.
| Field Summary | |
|---|---|
static java.lang.String |
ADF_POST_BACK_PARAMETER_NAME
The ADF postback parameter name. |
static java.lang.String |
CHARACTER_ENCODING_PARAMETER_NAME
The parameter name for the character encoding. |
static java.lang.String |
DEFAULT_CHARACTER_ENCODING
Default character encoding UTF-8. |
static java.lang.String |
ERROR_PAGE_PARAMETER_NAME
The parameter name for the page to redirect to if the session has been invalidated due to error. |
static java.lang.String |
REDIRECT_PAGE_PARAMETER_NAME
The parameter name for the page to redirect to if the session has timed out. |
| Constructor Summary | |
|---|---|
ADFSessionTimeoutFilter()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Destroys the filter. |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
The filter determines whether to continue normal processing for new sessions and valid sessions. |
void |
init(javax.servlet.FilterConfig filterConfig)
Initializes the filter by retrieving the values for "redirectPage" and "characterEncoding" |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String REDIRECT_PAGE_PARAMETER_NAME
public static final java.lang.String ERROR_PAGE_PARAMETER_NAME
public static final java.lang.String ADF_POST_BACK_PARAMETER_NAME
public static final java.lang.String CHARACTER_ENCODING_PARAMETER_NAME
public static final java.lang.String DEFAULT_CHARACTER_ENCODING
| Constructor Detail |
|---|
public ADFSessionTimeoutFilter()
| Method Detail |
|---|
public void init(javax.servlet.FilterConfig filterConfig)
init in interface javax.servlet.FilterfilterConfig - the filter configuration
public void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws java.io.IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.Filterrequest - the Servlet requestresponse - the Servlet responsechain - the Servlet filter chain
java.io.IOException
javax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.Filter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||