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 Summary
Enum Constants Enum Constant Description INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.servlet.http.HttpSessioncreateHttpSession(ImmutableSession session, jakarta.servlet.ServletContext context)jakarta.servlet.http.HttpSessionActivationListenercreateListener(Consumer<jakarta.servlet.http.HttpSession> prePassivate, Consumer<jakarta.servlet.http.HttpSession> postActivate)Class<jakarta.servlet.http.HttpSessionActivationListener>getHttpSessionActivationListenerClass()Consumer<jakarta.servlet.http.HttpSession>postActivateNotifier(jakarta.servlet.http.HttpSessionActivationListener listener)Consumer<jakarta.servlet.http.HttpSession>prePassivateNotifier(jakarta.servlet.http.HttpSessionActivationListener listener)static UndertowSpecificationProvidervalueOf(String name)Returns the enum constant of this type with the specified name.static UndertowSpecificationProvider[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final UndertowSpecificationProvider INSTANCE
-
-
Method Detail
-
values
public static UndertowSpecificationProvider[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (UndertowSpecificationProvider c : UndertowSpecificationProvider.values()) System.out.println(c);
- 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 nameNullPointerException- if the argument is null
-
createHttpSession
public jakarta.servlet.http.HttpSession createHttpSession(ImmutableSession session, jakarta.servlet.ServletContext context)
- Specified by:
createHttpSessionin interfaceHttpSessionFactory<jakarta.servlet.http.HttpSession,jakarta.servlet.ServletContext>
-
getHttpSessionActivationListenerClass
public Class<jakarta.servlet.http.HttpSessionActivationListener> getHttpSessionActivationListenerClass()
- Specified by:
getHttpSessionActivationListenerClassin interfaceHttpSessionActivationListenerProvider<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:
prePassivateNotifierin interfaceHttpSessionActivationListenerProvider<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:
postActivateNotifierin interfaceHttpSessionActivationListenerProvider<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:
createListenerin interfaceHttpSessionActivationListenerProvider<jakarta.servlet.http.HttpSession,jakarta.servlet.ServletContext,jakarta.servlet.http.HttpSessionActivationListener>
-
-