SessionCachingFilter (Apache Geode 1.15.4)

org.apache.geode.modules.session.filter

## Class SessionCachingFilter

- java.lang.Object
- - org.apache.geode.modules.session.filter.SessionCachingFilter

- All Implemented Interfaces:
    javax.servlet.Filter

      public class SessionCachingFilter
      extends Object
      implements javax.servlet.Filter

  Primary class which orchestrates everything. This is the class which gets configured in the web.xml.

- - ### Nested Class Summary

    Nested Classes
    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 Summary

    Constructors
    Constructor and Description
    `SessionCachingFilter()`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    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)`
    `static org.apache.geode.modules.session.internal.filter.SessionManager` | `getSessionManager()` Retrieve the SessionManager.
    `void` | `init(javax.servlet.FilterConfig config)` This is where all the initialization happens.
    `String` | `toString()` Return a String representation of this object.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### SessionCachingFilter

          public SessionCachingFilter()

  - ### Method Detail

    - #### doFilter

          public void doFilter(javax.servlet.ServletRequest request,
                               javax.servlet.ServletResponse response,
                               javax.servlet.FilterChain chain)
                        throws IOException,
                               javax.servlet.ServletException

      Specified by:
        `doFilter` in interface `javax.servlet.Filter`
      Parameters:
        `request` - The servlet request we are processing
        `response` - The servlet response we are creating
        `chain` - The filter chain we are processing
      Throws:
        `IOException` - if an input/output error occurs
        `javax.servlet.ServletException` - if a servlet error occurs

    - #### destroy

          public void destroy()

      Destroy method for this filter
      Specified by:
        `destroy` in interface `javax.servlet.Filter`

    - #### init

          public void init(javax.servlet.FilterConfig config)

      This is where all the initialization happens.
      Specified by:
        `init` in interface `javax.servlet.Filter`

    - #### toString

          public String toString()

      Return a String representation of this object.
      Overrides:
        `toString` in class `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