public class SessionCachingFilter
extends java.lang.Object
implements javax.servlet.Filter
Modifier and Type | Class and Description |
---|---|
static class |
SessionCachingFilter.RequestWrapper
This request wrapper class extends the support class
HttpServletRequestWrapper, which implements all the methods in the
HttpServletRequest interface, as delegations to the wrapped request.
|
Constructor and Description |
---|
SessionCachingFilter() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy method for this filter
|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain) |
javax.servlet.FilterConfig |
getFilterConfig()
Return the filter configuration object for this filter.
|
static org.apache.geode.modules.session.internal.filter.SessionManager |
getSessionManager()
Retrieve the SessionManager.
|
static java.lang.String |
getStackTrace(java.lang.Throwable t) |
static javax.servlet.http.HttpSession |
getWrappingSession(javax.servlet.http.HttpSession nativeSession)
Return the GemFire session which wraps a native session
|
void |
init(javax.servlet.FilterConfig config)
This is where all the initialization happens.
|
void |
setFilterConfig(javax.servlet.FilterConfig filterConfig)
Set the filter configuration object for this filter.
|
java.lang.String |
toString()
Return a String representation of this object.
|
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.Filter
request
- The servlet request we are processingresponse
- The servlet response we are creatingchain
- The filter chain we are processingjava.io.IOException
- if an input/output error occursjavax.servlet.ServletException
- if a servlet error occurspublic javax.servlet.FilterConfig getFilterConfig()
public void setFilterConfig(javax.servlet.FilterConfig filterConfig)
filterConfig
- The filter configuration objectpublic void destroy()
destroy
in interface javax.servlet.Filter
public void init(javax.servlet.FilterConfig config)
init
in interface javax.servlet.Filter
config
- javax.servlet.ServletException
public java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.String getStackTrace(java.lang.Throwable t)
public static org.apache.geode.modules.session.internal.filter.SessionManager getSessionManager()
public static javax.servlet.http.HttpSession getWrappingSession(javax.servlet.http.HttpSession nativeSession)
nativeSession
- the native session for which the corresponding GemFire
session should be returned.