Enum HttpSessionActivationListenerProvider

java.lang.Object
java.lang.Enum<HttpSessionActivationListenerProvider>
org.wildfly.clustering.session.spec.servlet.HttpSessionActivationListenerProvider
All Implemented Interfaces:
Serializable, Comparable<HttpSessionActivationListenerProvider>, java.lang.constant.Constable, SessionEventListenerSpecificationProvider<javax.servlet.http.HttpSession,javax.servlet.http.HttpSessionActivationListener>

public enum HttpSessionActivationListenerProvider extends Enum<HttpSessionActivationListenerProvider> implements SessionEventListenerSpecificationProvider<javax.servlet.http.HttpSession,javax.servlet.http.HttpSessionActivationListener>
Author:
Paul Ferraro
  • Enum Constant Details

  • Method Details

    • values

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

      public static HttpSessionActivationListenerProvider valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getEventListenerClass

      public Class<javax.servlet.http.HttpSessionActivationListener> getEventListenerClass()
      Specified by:
      getEventListenerClass in interface SessionEventListenerSpecificationProvider<javax.servlet.http.HttpSession,javax.servlet.http.HttpSessionActivationListener>
    • preEvent

      public Consumer<javax.servlet.http.HttpSession> preEvent(javax.servlet.http.HttpSessionActivationListener listener)
      Specified by:
      preEvent in interface SessionEventListenerSpecificationProvider<javax.servlet.http.HttpSession,javax.servlet.http.HttpSessionActivationListener>
    • postEvent

      public Consumer<javax.servlet.http.HttpSession> postEvent(javax.servlet.http.HttpSessionActivationListener listener)
      Specified by:
      postEvent in interface SessionEventListenerSpecificationProvider<javax.servlet.http.HttpSession,javax.servlet.http.HttpSessionActivationListener>
    • asEventListener

      public javax.servlet.http.HttpSessionActivationListener asEventListener(Consumer<javax.servlet.http.HttpSession> preEvent, Consumer<javax.servlet.http.HttpSession> postEvent)
      Specified by:
      asEventListener in interface SessionEventListenerSpecificationProvider<javax.servlet.http.HttpSession,javax.servlet.http.HttpSessionActivationListener>