|
|
@ -110,6 +110,8 @@ public class TomcatServletWebServerFactory extends AbstractServletWebServerFacto
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public static final String DEFAULT_PROTOCOL = "org.apache.coyote.http11.Http11NioProtocol";
|
|
|
|
public static final String DEFAULT_PROTOCOL = "org.apache.coyote.http11.Http11NioProtocol";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static final boolean IN_NATIVE_IMAGE = System.getProperty("org.graalvm.nativeimage.imagecode") != null;
|
|
|
|
|
|
|
|
|
|
|
|
private File baseDirectory;
|
|
|
|
private File baseDirectory;
|
|
|
|
|
|
|
|
|
|
|
|
private List<Valve> engineValves = new ArrayList<>();
|
|
|
|
private List<Valve> engineValves = new ArrayList<>();
|
|
|
@ -164,9 +166,14 @@ public class TomcatServletWebServerFactory extends AbstractServletWebServerFacto
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private static List<LifecycleListener> getDefaultLifecycleListeners() {
|
|
|
|
private static List<LifecycleListener> getDefaultLifecycleListeners() {
|
|
|
|
|
|
|
|
ArrayList<LifecycleListener> lifecycleListeners = new ArrayList<>();
|
|
|
|
|
|
|
|
if (!IN_NATIVE_IMAGE) {
|
|
|
|
AprLifecycleListener aprLifecycleListener = new AprLifecycleListener();
|
|
|
|
AprLifecycleListener aprLifecycleListener = new AprLifecycleListener();
|
|
|
|
return AprLifecycleListener.isAprAvailable() ? new ArrayList<>(Arrays.asList(aprLifecycleListener))
|
|
|
|
if (AprLifecycleListener.isAprAvailable()) {
|
|
|
|
: new ArrayList<>();
|
|
|
|
lifecycleListeners.add(aprLifecycleListener);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return lifecycleListeners;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|