Class AprLifecycleListener

  • All Implemented Interfaces:
    LifecycleListener

    public class AprLifecycleListener
    extends Object
    implements LifecycleListener
    Implementation of LifecycleListener that will init and and destroy APR.

    This listener must only be nested within Server elements.

    Note: If you are running Tomcat in an embedded fashion and have more than one Server instance per JVM, this listener must not be added to the Server instances, but handled outside by the calling code which is bootstrapping the embedded Tomcat instances. Not doing so will lead to JVM crashes.

    Since:
    4.1
    • Field Detail

      • sm

        protected static final StringManager sm
        The string manager for this package.
      • TCN_RECOMMENDED_MAJOR

        protected static final int TCN_RECOMMENDED_MAJOR
        See Also:
        Constant Field Values
      • TCN_RECOMMENDED_MINOR

        protected static final int TCN_RECOMMENDED_MINOR
        See Also:
        Constant Field Values
      • SSLEngine

        protected static String SSLEngine
      • FIPSMode

        protected static String FIPSMode
      • SSLRandomSeed

        protected static String SSLRandomSeed
      • sslInitialized

        protected static boolean sslInitialized
      • aprInitialized

        protected static boolean aprInitialized
      • aprAvailable

        protected static boolean aprAvailable
      • useAprConnector

        protected static boolean useAprConnector
      • useOpenSSL

        protected static boolean useOpenSSL
      • fipsModeActive

        protected static boolean fipsModeActive
      • lock

        protected static final Object lock
    • Constructor Detail

      • AprLifecycleListener

        public AprLifecycleListener()
    • Method Detail

      • isAprAvailable

        public static boolean isAprAvailable()
      • lifecycleEvent

        public void lifecycleEvent​(LifecycleEvent event)
        Primary entry point for startup and shutdown events.
        Specified by:
        lifecycleEvent in interface LifecycleListener
        Parameters:
        event - The event that has occurred
      • getSSLEngine

        public String getSSLEngine()
      • setSSLEngine

        public void setSSLEngine​(String SSLEngine)
      • getSSLRandomSeed

        public String getSSLRandomSeed()
      • setSSLRandomSeed

        public void setSSLRandomSeed​(String SSLRandomSeed)
      • getFIPSMode

        public String getFIPSMode()
      • setFIPSMode

        public void setFIPSMode​(String FIPSMode)
      • isFIPSModeActive

        public boolean isFIPSModeActive()
      • setUseAprConnector

        public void setUseAprConnector​(boolean useAprConnector)
      • getUseAprConnector

        public static boolean getUseAprConnector()
      • setUseOpenSSL

        public void setUseOpenSSL​(boolean useOpenSSL)
      • getUseOpenSSL

        public static boolean getUseOpenSSL()
      • isInstanceCreated

        public static boolean isInstanceCreated()