com.esri.adf.web.util
Class ADFFilter

java.lang.Object
  extended by com.esri.adf.web.util.ADFFilter
All Implemented Interfaces:
javax.servlet.Filter

public class ADFFilter
extends java.lang.Object
implements javax.servlet.Filter


Field Summary
static java.lang.String CACHE_INITIAL_STATE_PARAMETER_NAME
          The parameter name based on which the initial state of a user's session will be cached (or not).
static java.lang.String HTTP_REFERRER
          The parameter name used to store the request URL.
static java.lang.String HTTP_REFERRER_VALUE
          Stores the request URL.
 
Constructor Summary
ADFFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, javax.servlet.FilterChain chain)
           
 void init(javax.servlet.FilterConfig config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CACHE_INITIAL_STATE_PARAMETER_NAME

public static final java.lang.String CACHE_INITIAL_STATE_PARAMETER_NAME
The parameter name based on which the initial state of a user's session will be cached (or not). The value is "true" by default. To turn caching of initial state off, set this attribute to "false" in web.xml

See Also:
Constant Field Values

HTTP_REFERRER

public static final java.lang.String HTTP_REFERRER
The parameter name used to store the request URL.
 For example,
   context.getWebSession().getAttribute(ADFFilter.HTTP_REFERRER) return the HTTP Referrer
 

See Also:
Constant Field Values

HTTP_REFERRER_VALUE

public static java.lang.String HTTP_REFERRER_VALUE
Stores the request URL.

Constructor Detail

ADFFilter

public ADFFilter()
Method Detail

init

public void init(javax.servlet.FilterConfig config)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Filter
Throws:
javax.servlet.ServletException

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Filter

doFilter

public void doFilter(javax.servlet.ServletRequest req,
                     javax.servlet.ServletResponse res,
                     javax.servlet.FilterChain chain)
              throws java.io.IOException,
                     javax.servlet.ServletException
Specified by:
doFilter in interface javax.servlet.Filter
Throws:
java.io.IOException
javax.servlet.ServletException