类 TomcatWebServer

    • 构造器详细资料

      • TomcatWebServer

        public TomcatWebServer​(org.apache.catalina.startup.Tomcat tomcat)
        Create a new TomcatWebServer instance.
        参数:
        tomcat - the underlying Tomcat server
      • TomcatWebServer

        public TomcatWebServer​(org.apache.catalina.startup.Tomcat tomcat,
                               boolean autoStart)
        Create a new TomcatWebServer instance.
        参数:
        tomcat - the underlying Tomcat server
        autoStart - if the server should be started
    • 方法详细资料

      • getPort

        public int getPort()
        从接口复制的说明: WebServer
        Return the port this server is listening on.
        指定者:
        getPort 在接口中 WebServer
        返回:
        the port (or -1 if none)
      • getTomcat

        public org.apache.catalina.startup.Tomcat getTomcat()
        Returns access to the underlying Tomcat server.
        返回:
        the Tomcat server