Enum Class CatalinaSpecificationProvider

java.lang.Object
java.lang.Enum<CatalinaSpecificationProvider>
org.wildfly.clustering.tomcat.catalina.CatalinaSpecificationProvider
All Implemented Interfaces:
Serializable, Comparable<CatalinaSpecificationProvider>, java.lang.constant.Constable, org.wildfly.clustering.web.session.HttpSessionActivationListenerProvider<javax.servlet.http.HttpSession,javax.servlet.ServletContext,javax.servlet.http.HttpSessionActivationListener>, org.wildfly.clustering.web.session.HttpSessionFactory<javax.servlet.http.HttpSession,javax.servlet.ServletContext>, org.wildfly.clustering.web.session.SpecificationProvider<javax.servlet.http.HttpSession,javax.servlet.ServletContext,javax.servlet.http.HttpSessionActivationListener>

public enum CatalinaSpecificationProvider extends Enum<CatalinaSpecificationProvider> implements org.wildfly.clustering.web.session.SpecificationProvider<javax.servlet.http.HttpSession,javax.servlet.ServletContext,javax.servlet.http.HttpSessionActivationListener>
Author:
Paul Ferraro
  • Enum Constant Details

  • Method Details

    • values

      public static CatalinaSpecificationProvider[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CatalinaSpecificationProvider valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • createHttpSession

      public javax.servlet.http.HttpSession createHttpSession(org.wildfly.clustering.web.session.ImmutableSession session, javax.servlet.ServletContext context)
      Specified by:
      createHttpSession in interface org.wildfly.clustering.web.session.HttpSessionFactory<javax.servlet.http.HttpSession,javax.servlet.ServletContext>
    • getHttpSessionActivationListenerClass

      public Class<javax.servlet.http.HttpSessionActivationListener> getHttpSessionActivationListenerClass()
      Specified by:
      getHttpSessionActivationListenerClass in interface org.wildfly.clustering.web.session.HttpSessionActivationListenerProvider<javax.servlet.http.HttpSession,javax.servlet.ServletContext,javax.servlet.http.HttpSessionActivationListener>
    • prePassivateNotifier

      public Consumer<javax.servlet.http.HttpSession> prePassivateNotifier(javax.servlet.http.HttpSessionActivationListener listener)
      Specified by:
      prePassivateNotifier in interface org.wildfly.clustering.web.session.HttpSessionActivationListenerProvider<javax.servlet.http.HttpSession,javax.servlet.ServletContext,javax.servlet.http.HttpSessionActivationListener>
    • postActivateNotifier

      public Consumer<javax.servlet.http.HttpSession> postActivateNotifier(javax.servlet.http.HttpSessionActivationListener listener)
      Specified by:
      postActivateNotifier in interface org.wildfly.clustering.web.session.HttpSessionActivationListenerProvider<javax.servlet.http.HttpSession,javax.servlet.ServletContext,javax.servlet.http.HttpSessionActivationListener>
    • createListener

      public javax.servlet.http.HttpSessionActivationListener createListener(Consumer<javax.servlet.http.HttpSession> prePassivate, Consumer<javax.servlet.http.HttpSession> postActivate)
      Specified by:
      createListener in interface org.wildfly.clustering.web.session.HttpSessionActivationListenerProvider<javax.servlet.http.HttpSession,javax.servlet.ServletContext,javax.servlet.http.HttpSessionActivationListener>