Package org.apache.catalina.core
Class AprLifecycleListener
java.lang.Object
org.apache.catalina.core.AprLifecycleListener
- All Implemented Interfaces:
LifecycleListener
Implementation of
LifecycleListener
that will init and and destroy APR.
This listener must only be nested within Server
elements.
Only one instance of the APR/Native library may be loaded per JVM. Loading multiple instances will trigger a JVM crash - typically when the Connectors are destroyed. This listener utilises reference counting to ensure that only one instance of the APR/Native library is loaded at any one time.
If multiple listener configurations are found, only the first one initialised will be used.
- Since:
- 4.1
-
Field Summary
Modifier and TypeFieldDescriptionprotected static String
protected static boolean
protected static final Object
protected static final StringManager
The string manager for this package.protected static String
protected static boolean
protected static String
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
static boolean
boolean
static boolean
void
lifecycleEvent
(LifecycleEvent event) Primary entry point for startup and shutdown events.void
setFIPSMode
(String FIPSMode) void
setSSLEngine
(String SSLEngine) void
setSSLRandomSeed
(String SSLRandomSeed) void
setUseOpenSSL
(boolean useOpenSSL)
-
Field Details
-
sm
The string manager for this package. -
TCN_REQUIRED_MAJOR
protected static final int TCN_REQUIRED_MAJOR- See Also:
-
TCN_REQUIRED_MINOR
protected static final int TCN_REQUIRED_MINOR- See Also:
-
TCN_REQUIRED_PATCH
protected static final int TCN_REQUIRED_PATCH- See Also:
-
TCN_RECOMMENDED_MAJOR
protected static final int TCN_RECOMMENDED_MAJOR- See Also:
-
TCN_RECOMMENDED_MINOR
protected static final int TCN_RECOMMENDED_MINOR- See Also:
-
TCN_RECOMMENDED_PV
protected static final int TCN_RECOMMENDED_PV- See Also:
-
SSLEngine
-
FIPSMode
-
SSLRandomSeed
-
sslInitialized
protected static boolean sslInitialized -
fipsModeActive
protected static boolean fipsModeActive -
lock
-
-
Constructor Details
-
AprLifecycleListener
public AprLifecycleListener()
-
-
Method Details
-
isAprAvailable
public static boolean isAprAvailable() -
lifecycleEvent
Primary entry point for startup and shutdown events.- Specified by:
lifecycleEvent
in interfaceLifecycleListener
- Parameters:
event
- The event that has occurred
-
getSSLEngine
-
setSSLEngine
-
getSSLRandomSeed
-
setSSLRandomSeed
-
getFIPSMode
-
setFIPSMode
-
isFIPSModeActive
public boolean isFIPSModeActive() -
setUseOpenSSL
public void setUseOpenSSL(boolean useOpenSSL) -
getUseOpenSSL
public static boolean getUseOpenSSL() -
isInstanceCreated
public static boolean isInstanceCreated()
-