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<jakarta.servlet.http.HttpSession,jakarta.servlet.ServletContext, jakarta.servlet.http.HttpSessionActivationListener>
public enum JakartaServletSpecificationProvider
extends Enum<JakartaServletSpecificationProvider>
implements SessionSpecificationProvider<jakarta.servlet.http.HttpSession,jakarta.servlet.ServletContext,jakarta.servlet.http.HttpSessionActivationListener>
- Author:
- Paul Ferraro
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionjakarta.servlet.http.HttpSessionasSession(org.wildfly.clustering.session.ImmutableSession session, jakarta.servlet.ServletContext context) jakarta.servlet.http.HttpSessionActivationListenerasSessionActivationListener(Consumer<jakarta.servlet.http.HttpSession> prePassivate, Consumer<jakarta.servlet.http.HttpSession> postActivate) Class<jakarta.servlet.http.HttpSessionActivationListener> Consumer<jakarta.servlet.http.HttpSession> postActivate(jakarta.servlet.http.HttpSessionActivationListener listener) Consumer<jakarta.servlet.http.HttpSession> prePassivate(jakarta.servlet.http.HttpSessionActivationListener listener) Returns the enum constant of this type with the specified name.static JakartaServletSpecificationProvider[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface org.wildfly.clustering.session.spec.SessionSpecificationProvider
asSessionActivationListener
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
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
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
-
asSession
public jakarta.servlet.http.HttpSession asSession(org.wildfly.clustering.session.ImmutableSession session, jakarta.servlet.ServletContext context) - Specified by:
asSessionin interfaceSessionSpecificationProvider<jakarta.servlet.http.HttpSession,jakarta.servlet.ServletContext, jakarta.servlet.http.HttpSessionActivationListener>
-
getSessionActivationListenerClass
public Class<jakarta.servlet.http.HttpSessionActivationListener> getSessionActivationListenerClass()- Specified by:
getSessionActivationListenerClassin interfaceSessionSpecificationProvider<jakarta.servlet.http.HttpSession,jakarta.servlet.ServletContext, jakarta.servlet.http.HttpSessionActivationListener>
-
prePassivate
public Consumer<jakarta.servlet.http.HttpSession> prePassivate(jakarta.servlet.http.HttpSessionActivationListener listener) - Specified by:
prePassivatein interfaceSessionSpecificationProvider<jakarta.servlet.http.HttpSession,jakarta.servlet.ServletContext, jakarta.servlet.http.HttpSessionActivationListener>
-
postActivate
public Consumer<jakarta.servlet.http.HttpSession> postActivate(jakarta.servlet.http.HttpSessionActivationListener listener) - Specified by:
postActivatein interfaceSessionSpecificationProvider<jakarta.servlet.http.HttpSession,jakarta.servlet.ServletContext, jakarta.servlet.http.HttpSessionActivationListener>
-
asSessionActivationListener
public jakarta.servlet.http.HttpSessionActivationListener asSessionActivationListener(Consumer<jakarta.servlet.http.HttpSession> prePassivate, Consumer<jakarta.servlet.http.HttpSession> postActivate) - Specified by:
asSessionActivationListenerin interfaceSessionSpecificationProvider<jakarta.servlet.http.HttpSession,jakarta.servlet.ServletContext, jakarta.servlet.http.HttpSessionActivationListener>
-