|
|
@ -22,7 +22,6 @@ import java.nio.charset.StandardCharsets;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.Arrays;
|
|
|
|
import java.util.Arrays;
|
|
|
|
import java.util.Collection;
|
|
|
|
import java.util.Collection;
|
|
|
|
import java.util.Collections;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
import org.apache.catalina.Context;
|
|
|
|
import org.apache.catalina.Context;
|
|
|
@ -67,8 +66,7 @@ public class TomcatReactiveWebServerFactory extends AbstractReactiveWebServerFac
|
|
|
|
|
|
|
|
|
|
|
|
private List<Valve> engineValves = new ArrayList<>();
|
|
|
|
private List<Valve> engineValves = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
|
|
private List<LifecycleListener> contextLifecycleListeners = new ArrayList<>(
|
|
|
|
private List<LifecycleListener> contextLifecycleListeners = getDefaultLifecycleListeners();
|
|
|
|
Collections.singleton(new AprLifecycleListener()));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private List<TomcatContextCustomizer> tomcatContextCustomizers = new ArrayList<>();
|
|
|
|
private List<TomcatContextCustomizer> tomcatContextCustomizers = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
|
@ -95,6 +93,13 @@ public class TomcatReactiveWebServerFactory extends AbstractReactiveWebServerFac
|
|
|
|
super(port);
|
|
|
|
super(port);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static List<LifecycleListener> getDefaultLifecycleListeners() {
|
|
|
|
|
|
|
|
AprLifecycleListener aprLifecycleListener = new AprLifecycleListener();
|
|
|
|
|
|
|
|
return AprLifecycleListener.isAprAvailable()
|
|
|
|
|
|
|
|
? new ArrayList<>(Arrays.asList(aprLifecycleListener))
|
|
|
|
|
|
|
|
: new ArrayList<>();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public WebServer getWebServer(HttpHandler httpHandler) {
|
|
|
|
public WebServer getWebServer(HttpHandler httpHandler) {
|
|
|
|
Tomcat tomcat = new Tomcat();
|
|
|
|
Tomcat tomcat = new Tomcat();
|
|
|
|