|
|||||||||
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 String |
ADF_POST_BACK_PARAMETER_NAME
The ADF postback parameter name. |
static String |
CHARACTER_ENCODING_PARAMETER_NAME
The parameter name for the character encoding. |
static String |
DEFAULT_CHARACTER_ENCODING
Default character encoding UTF-8. |
static String |
ERROR_PAGE_PARAMETER_NAME
The parameter name for the page to redirect to if the session has been invalidated due to error. |
static 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 String REDIRECT_PAGE_PARAMETER_NAME
public static final String ERROR_PAGE_PARAMETER_NAME
public static final String ADF_POST_BACK_PARAMETER_NAME
public static final String CHARACTER_ENCODING_PARAMETER_NAME
public static final String DEFAULT_CHARACTER_ENCODING
Constructor Detail |
---|
public ADFSessionTimeoutFilter()
Method Detail |
---|
public void init(javax.servlet.FilterConfig filterConfig)
init
in interface javax.servlet.Filter
filterConfig
- the filter configurationpublic void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
request
- the Servlet requestresponse
- the Servlet responsechain
- the Servlet filter chain
IOException
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Filter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |