Enum JakartaServletSpecificationProvider

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

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

  • Method Details

    • values

      public static JakartaServletSpecificationProvider[] 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 JakartaServletSpecificationProvider 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
    • asSession

      public javax.servlet.http.HttpSession asSession(org.wildfly.clustering.session.ImmutableSession session, javax.servlet.ServletContext context)
      Specified by:
      asSession in interface SessionSpecificationProvider<javax.servlet.http.HttpSession,javax.servlet.ServletContext,javax.servlet.http.HttpSessionActivationListener>
    • getSessionActivationListenerClass

      public Class<javax.servlet.http.HttpSessionActivationListener> getSessionActivationListenerClass()
      Specified by:
      getSessionActivationListenerClass in interface SessionSpecificationProvider<javax.servlet.http.HttpSession,javax.servlet.ServletContext,javax.servlet.http.HttpSessionActivationListener>
    • prePassivate

      public Consumer<javax.servlet.http.HttpSession> prePassivate(javax.servlet.http.HttpSessionActivationListener listener)
      Specified by:
      prePassivate in interface SessionSpecificationProvider<javax.servlet.http.HttpSession,javax.servlet.ServletContext,javax.servlet.http.HttpSessionActivationListener>
    • postActivate

      public Consumer<javax.servlet.http.HttpSession> postActivate(javax.servlet.http.HttpSessionActivationListener listener)
      Specified by:
      postActivate in interface SessionSpecificationProvider<javax.servlet.http.HttpSession,javax.servlet.ServletContext,javax.servlet.http.HttpSessionActivationListener>
    • asSessionActivationListener

      public javax.servlet.http.HttpSessionActivationListener asSessionActivationListener(Consumer<javax.servlet.http.HttpSession> prePassivate, Consumer<javax.servlet.http.HttpSession> postActivate)
      Specified by:
      asSessionActivationListener in interface SessionSpecificationProvider<javax.servlet.http.HttpSession,javax.servlet.ServletContext,javax.servlet.http.HttpSessionActivationListener>