// 关闭服务器 protected void stopInternal() { isStart = false; isStop = true; Tools.visit(Tools.getShutdownUrl(getPort())); connector.stop(); host.stop(); }
public Server(int listenPort) { Tools.assert0(listenPort > 0, true); connector = new Connector(listenPort, this); host = new Host(Constants.ROOT_CONTAINER, Constants.WEB_APPS); isStart = false; isStop = false; }