Enum 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
    • 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 name
        NullPointerException - 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:
        createHttpSession in interface org.wildfly.clustering.web.session.HttpSessionFactory<javax.servlet.http.HttpSession,​javax.servlet.ServletContext>
      • getHttpSessionActivationListenerClass

        public Class<javax.servlet.http.HttpSessionActivationListener> getHttpSessionActivationListenerClass()
        Specified by:
        getHttpSessionActivationListenerClass in interface org.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:
        prePassivateNotifier in interface org.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:
        postActivateNotifier in interface org.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:
        createListener in interface org.wildfly.clustering.web.session.HttpSessionActivationListenerProvider<javax.servlet.http.HttpSession,​javax.servlet.ServletContext,​javax.servlet.http.HttpSessionActivationListener>