Class SessionCachingFilter
java.lang.Object
org.apache.geode.modules.session.filter.SessionCachingFilter
- All Implemented Interfaces:
jakarta.servlet.Filter
Primary class which orchestrates everything. This is the class which gets configured in the
web.xml.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis request wrapper class extends the support class HttpServletRequestWrapper, which implements all the methods in the HttpServletRequest interface, as delegations to the wrapped request. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Destroy method for this filtervoiddoFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) static org.apache.geode.modules.session.internal.filter.SessionManagerRetrieve the SessionManager.voidinit(jakarta.servlet.FilterConfig config) This is where all the initialization happens.toString()Return a String representation of this object.
-
Constructor Details
-
SessionCachingFilter
public SessionCachingFilter()
-
-
Method Details
-
doFilter
public void doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException - Specified by:
doFilterin interfacejakarta.servlet.Filter- Parameters:
request- The servlet request we are processingresponse- The servlet response we are creatingchain- The filter chain we are processing- Throws:
IOException- if an input/output error occursjakarta.servlet.ServletException- if a servlet error occurs
-
destroy
public void destroy()Destroy method for this filter- Specified by:
destroyin interfacejakarta.servlet.Filter
-
init
public void init(jakarta.servlet.FilterConfig config) This is where all the initialization happens.- Specified by:
initin interfacejakarta.servlet.Filter
-
toString
Return a String representation of this object. -
getSessionManager
public static org.apache.geode.modules.session.internal.filter.SessionManager getSessionManager()Retrieve the SessionManager. This is only here so that tests can get access to the cache.- Returns:
- the SessionManager
-