public class TomcatWebServer extends Object implements WebServer
WebServer that can be used to control a Tomcat web server. Usually this class
 should be created using the TomcatReactiveWebServerFactory of
 TomcatServletWebServerFactory, but not directly.| Constructor and Description | 
|---|
| TomcatWebServer(org.apache.catalina.startup.Tomcat tomcat)Create a new  TomcatWebServerinstance. | 
| TomcatWebServer(org.apache.catalina.startup.Tomcat tomcat,
               boolean autoStart)Create a new  TomcatWebServerinstance. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | getPort()Return the port this server is listening on. | 
| org.apache.catalina.startup.Tomcat | getTomcat()Returns access to the underlying Tomcat server. | 
| void | start()Starts the web server. | 
| void | stop()Stops the web server. | 
public TomcatWebServer(org.apache.catalina.startup.Tomcat tomcat)
TomcatWebServer instance.tomcat - the underlying Tomcat serverpublic TomcatWebServer(org.apache.catalina.startup.Tomcat tomcat,
                       boolean autoStart)
TomcatWebServer instance.tomcat - the underlying Tomcat serverautoStart - if the server should be startedpublic void start()
           throws WebServerException
WebServerstart in interface WebServerWebServerException - if the server cannot be startedpublic void stop()
          throws WebServerException
WebServerstop in interface WebServerWebServerException - if the server cannot be stoppedpublic int getPort()
WebServerpublic org.apache.catalina.startup.Tomcat getTomcat()
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.