Beispiel #1
0
 // 关闭服务器
 protected void stopInternal() {
   isStart = false;
   isStop = true;
   Tools.visit(Tools.getShutdownUrl(getPort()));
   connector.stop();
   host.stop();
 }
 /** @see Server#stop() */
 @Override
 public void stop() throws Exception {
   if (connectors != null) {
     for (Connector c : connectors) {
       c.stop();
     }
   }
 }