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 Object
implements javax.servlet.Filter


Field Summary
static 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 String CLIENT_IP
          The parameter name used to store the client IP address.
static String HTTP_REFERRER
          The parameter name used to store the request URL.
static 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 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 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

CLIENT_IP

public static final String CLIENT_IP
The parameter name used to store the client IP address.
 For example,
   context.getWebSession().getAttribute(ADFFilter.CLIENT_IP) return the client IP address
 

See Also:
Constant Field Values

HTTP_REFERRER_VALUE

public static 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 IOException,
                     javax.servlet.ServletException
Specified by:
doFilter in interface javax.servlet.Filter
Throws:
IOException
javax.servlet.ServletException