Enum UndertowSpecificationProvider

java.lang.Object
java.lang.Enum<UndertowSpecificationProvider>
org.wildfly.clustering.web.undertow.session.UndertowSpecificationProvider
All Implemented Interfaces:
Serializable, Comparable<UndertowSpecificationProvider>, HttpSessionActivationListenerProvider<jakarta.servlet.http.HttpSession,jakarta.servlet.ServletContext,jakarta.servlet.http.HttpSessionActivationListener>, HttpSessionFactory<jakarta.servlet.http.HttpSession,jakarta.servlet.ServletContext>, SpecificationProvider<jakarta.servlet.http.HttpSession,jakarta.servlet.ServletContext,jakarta.servlet.http.HttpSessionActivationListener>

public enum UndertowSpecificationProvider extends Enum<UndertowSpecificationProvider> implements SpecificationProvider<jakarta.servlet.http.HttpSession,jakarta.servlet.ServletContext,jakarta.servlet.http.HttpSessionActivationListener>
Author:
Paul Ferraro
  • Enum Constant Details

  • Method Details

    • values

      public static UndertowSpecificationProvider[] 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 UndertowSpecificationProvider 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
    • createHttpSession

      public jakarta.servlet.http.HttpSession createHttpSession(ImmutableSession session, jakarta.servlet.ServletContext context)
      Specified by:
      createHttpSession in interface HttpSessionFactory<jakarta.servlet.http.HttpSession,jakarta.servlet.ServletContext>
    • getHttpSessionActivationListenerClass

      public Class<jakarta.servlet.http.HttpSessionActivationListener> getHttpSessionActivationListenerClass()
      Specified by:
      getHttpSessionActivationListenerClass in interface HttpSessionActivationListenerProvider<jakarta.servlet.http.HttpSession,jakarta.servlet.ServletContext,jakarta.servlet.http.HttpSessionActivationListener>
    • prePassivateNotifier

      public Consumer<jakarta.servlet.http.HttpSession> prePassivateNotifier(jakarta.servlet.http.HttpSessionActivationListener listener)
      Specified by:
      prePassivateNotifier in interface HttpSessionActivationListenerProvider<jakarta.servlet.http.HttpSession,jakarta.servlet.ServletContext,jakarta.servlet.http.HttpSessionActivationListener>
    • postActivateNotifier

      public Consumer<jakarta.servlet.http.HttpSession> postActivateNotifier(jakarta.servlet.http.HttpSessionActivationListener listener)
      Specified by:
      postActivateNotifier in interface HttpSessionActivationListenerProvider<jakarta.servlet.http.HttpSession,jakarta.servlet.ServletContext,jakarta.servlet.http.HttpSessionActivationListener>
    • createListener

      public jakarta.servlet.http.HttpSessionActivationListener createListener(Consumer<jakarta.servlet.http.HttpSession> prePassivate, Consumer<jakarta.servlet.http.HttpSession> postActivate)
      Specified by:
      createListener in interface HttpSessionActivationListenerProvider<jakarta.servlet.http.HttpSession,jakarta.servlet.ServletContext,jakarta.servlet.http.HttpSessionActivationListener>