Enum CatalinaSpecificationProvider
- java.lang.Object
-
- java.lang.Enum<CatalinaSpecificationProvider>
-
- org.wildfly.clustering.tomcat.catalina.CatalinaSpecificationProvider
-
- All Implemented Interfaces:
Serializable,Comparable<CatalinaSpecificationProvider>,org.wildfly.clustering.web.session.HttpSessionActivationListenerProvider<javax.servlet.http.HttpSession,javax.servlet.ServletContext,javax.servlet.http.HttpSessionActivationListener>,org.wildfly.clustering.web.session.HttpSessionFactory<javax.servlet.http.HttpSession,javax.servlet.ServletContext>,org.wildfly.clustering.web.session.SpecificationProvider<javax.servlet.http.HttpSession,javax.servlet.ServletContext,javax.servlet.http.HttpSessionActivationListener>
public enum CatalinaSpecificationProvider extends Enum<CatalinaSpecificationProvider> implements org.wildfly.clustering.web.session.SpecificationProvider<javax.servlet.http.HttpSession,javax.servlet.ServletContext,javax.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 javax.servlet.http.HttpSessioncreateHttpSession(org.wildfly.clustering.web.session.ImmutableSession session, javax.servlet.ServletContext context)javax.servlet.http.HttpSessionActivationListenercreateListener(Consumer<javax.servlet.http.HttpSession> prePassivate, Consumer<javax.servlet.http.HttpSession> postActivate)Class<javax.servlet.http.HttpSessionActivationListener>getHttpSessionActivationListenerClass()Consumer<javax.servlet.http.HttpSession>postActivateNotifier(javax.servlet.http.HttpSessionActivationListener listener)Consumer<javax.servlet.http.HttpSession>prePassivateNotifier(javax.servlet.http.HttpSessionActivationListener listener)static CatalinaSpecificationProvidervalueOf(String name)Returns the enum constant of this type with the specified name.static CatalinaSpecificationProvider[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final CatalinaSpecificationProvider INSTANCE
-
-
Method Detail
-
values
public static CatalinaSpecificationProvider[] 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 (CatalinaSpecificationProvider c : CatalinaSpecificationProvider.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CatalinaSpecificationProvider 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 javax.servlet.http.HttpSession createHttpSession(org.wildfly.clustering.web.session.ImmutableSession session, javax.servlet.ServletContext context)- Specified by:
createHttpSessionin interfaceorg.wildfly.clustering.web.session.HttpSessionFactory<javax.servlet.http.HttpSession,javax.servlet.ServletContext>
-
getHttpSessionActivationListenerClass
public Class<javax.servlet.http.HttpSessionActivationListener> getHttpSessionActivationListenerClass()
- Specified by:
getHttpSessionActivationListenerClassin interfaceorg.wildfly.clustering.web.session.HttpSessionActivationListenerProvider<javax.servlet.http.HttpSession,javax.servlet.ServletContext,javax.servlet.http.HttpSessionActivationListener>
-
prePassivateNotifier
public Consumer<javax.servlet.http.HttpSession> prePassivateNotifier(javax.servlet.http.HttpSessionActivationListener listener)
- Specified by:
prePassivateNotifierin interfaceorg.wildfly.clustering.web.session.HttpSessionActivationListenerProvider<javax.servlet.http.HttpSession,javax.servlet.ServletContext,javax.servlet.http.HttpSessionActivationListener>
-
postActivateNotifier
public Consumer<javax.servlet.http.HttpSession> postActivateNotifier(javax.servlet.http.HttpSessionActivationListener listener)
- Specified by:
postActivateNotifierin interfaceorg.wildfly.clustering.web.session.HttpSessionActivationListenerProvider<javax.servlet.http.HttpSession,javax.servlet.ServletContext,javax.servlet.http.HttpSessionActivationListener>
-
createListener
public javax.servlet.http.HttpSessionActivationListener createListener(Consumer<javax.servlet.http.HttpSession> prePassivate, Consumer<javax.servlet.http.HttpSession> postActivate)
- Specified by:
createListenerin interfaceorg.wildfly.clustering.web.session.HttpSessionActivationListenerProvider<javax.servlet.http.HttpSession,javax.servlet.ServletContext,javax.servlet.http.HttpSessionActivationListener>
-
-