org.apache.catalina.connector.Connector.setState()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(8.9k)|赞(0)|评价(0)|浏览(145)

本文整理了Java中org.apache.catalina.connector.Connector.setState()方法的一些代码示例,展示了Connector.setState()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Connector.setState()方法的具体详情如下:
包路径:org.apache.catalina.connector.Connector
类名称:Connector
方法名:setState

Connector.setState介绍

暂无

代码示例

代码示例来源:origin: org.apache.tomcat/tomcat-catalina

/**
 * Terminate processing requests via this Connector.
 *
 * @exception LifecycleException if a fatal shutdown error occurs
 */
@Override
protected void stopInternal() throws LifecycleException {
  setState(LifecycleState.STOPPING);
  try {
    if (protocolHandler != null) {
      protocolHandler.stop();
    }
  } catch (Exception e) {
    throw new LifecycleException(
        sm.getString("coyoteConnector.protocolHandlerStopFailed"), e);
  }
}

代码示例来源:origin: codefollower/Tomcat-Research

/**
 * Terminate processing requests via this Connector.
 *
 * @exception LifecycleException if a fatal shutdown error occurs
 */
@Override
protected void stopInternal() throws LifecycleException {
  setState(LifecycleState.STOPPING);
  try {
    protocolHandler.stop();
  } catch (Exception e) {
    throw new LifecycleException
      (sm.getString
       ("coyoteConnector.protocolHandlerStopFailed"), e);
  }
}

代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

/**
 * Terminate processing requests via this Connector.
 *
 * @exception LifecycleException if a fatal shutdown error occurs
 */
@Override
protected void stopInternal() throws LifecycleException {
  setState(LifecycleState.STOPPING);
  try {
    if (protocolHandler != null) {
      protocolHandler.stop();
    }
  } catch (Exception e) {
    throw new LifecycleException(
        sm.getString("coyoteConnector.protocolHandlerStopFailed"), e);
  }
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

/**
 * Terminate processing requests via this Connector.
 *
 * @exception LifecycleException if a fatal shutdown error occurs
 */
@Override
protected void stopInternal() throws LifecycleException {
  setState(LifecycleState.STOPPING);
  try {
    protocolHandler.stop();
  } catch (Exception e) {
    throw new LifecycleException
      (sm.getString
       ("coyoteConnector.protocolHandlerStopFailed"), e);
  }
  mapperListener.stop();
}

代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina

/**
 * Terminate processing requests via this Connector.
 *
 * @exception LifecycleException if a fatal shutdown error occurs
 */
@Override
protected void stopInternal() throws LifecycleException {
  setState(LifecycleState.STOPPING);
  try {
    protocolHandler.stop();
  } catch (Exception e) {
    throw new LifecycleException
      (sm.getString
       ("coyoteConnector.protocolHandlerStopFailed"), e);
  }
  mapperListener.stop();
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

/**
 * Terminate processing requests via this Connector.
 *
 * @exception LifecycleException if a fatal shutdown error occurs
 */
@Override
protected void stopInternal() throws LifecycleException {
  setState(LifecycleState.STOPPING);
  try {
    protocolHandler.stop();
  } catch (Exception e) {
    throw new LifecycleException
      (sm.getString
       ("coyoteConnector.protocolHandlerStopFailed"), e);
  }
  mapperListener.stop();
}

代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina

/**
 * Terminate processing requests via this Connector.
 *
 * @exception LifecycleException if a fatal shutdown error occurs
 */
@Override
protected void stopInternal() throws LifecycleException {
  setState(LifecycleState.STOPPING);
  try {
    protocolHandler.stop();
  } catch (Exception e) {
    throw new LifecycleException
      (sm.getString
       ("coyoteConnector.protocolHandlerStopFailed"), e);
  }
  mapperListener.stop();
}

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

/**
 * Terminate processing requests via this Connector.
 *
 * @exception LifecycleException if a fatal shutdown error occurs
 */
@Override
protected void stopInternal() throws LifecycleException {
  setState(LifecycleState.STOPPING);
  try {
    protocolHandler.stop();
  } catch (Exception e) {
    throw new LifecycleException
      (sm.getString
       ("coyoteConnector.protocolHandlerStopFailed"), e);
  }
  mapperListener.stop();
}

代码示例来源:origin: org.apache.tomcat/tomcat-catalina

/**
 * Begin processing requests via this Connector.
 *
 * @exception LifecycleException if a fatal startup error occurs
 */
@Override
protected void startInternal() throws LifecycleException {
  // Validate settings before starting
  if (getPortWithOffset() < 0) {
    throw new LifecycleException(sm.getString(
        "coyoteConnector.invalidPort", Integer.valueOf(getPortWithOffset())));
  }
  setState(LifecycleState.STARTING);
  try {
    protocolHandler.start();
  } catch (Exception e) {
    throw new LifecycleException(
        sm.getString("coyoteConnector.protocolHandlerStartFailed"), e);
  }
}

代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

/**
 * Begin processing requests via this Connector.
 *
 * @exception LifecycleException if a fatal startup error occurs
 */
@Override
protected void startInternal() throws LifecycleException {
  // Validate settings before starting
  if (getPort() < 0) {
    throw new LifecycleException(sm.getString(
        "coyoteConnector.invalidPort", Integer.valueOf(getPort())));
  }
  setState(LifecycleState.STARTING);
  try {
    protocolHandler.start();
  } catch (Exception e) {
    throw new LifecycleException(
        sm.getString("coyoteConnector.protocolHandlerStartFailed"), e);
  }
}

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

/**
 * Begin processing requests via this Connector.
 *
 * @exception LifecycleException if a fatal startup error occurs
 */
@Override
protected void startInternal() throws LifecycleException {
  setState(LifecycleState.STARTING);
  try {
    protocolHandler.start();
  } catch (Exception e) {
    String errPrefix = "";
    if(this.service != null) {
      errPrefix += "service.getName(): \"" + this.service.getName() + "\"; ";
    }
    throw new LifecycleException
      (errPrefix + " " + sm.getString
       ("coyoteConnector.protocolHandlerStartFailed"), e);
  }
  mapperListener.start();
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

/**
 * Begin processing requests via this Connector.
 *
 * @exception LifecycleException if a fatal startup error occurs
 */
@Override
protected void startInternal() throws LifecycleException {
  setState(LifecycleState.STARTING);
  try {
    protocolHandler.start();
  } catch (Exception e) {
    String errPrefix = "";
    if(this.service != null) {
      errPrefix += "service.getName(): \"" + this.service.getName() + "\"; ";
    }
    throw new LifecycleException
      (errPrefix + " " + sm.getString
       ("coyoteConnector.protocolHandlerStartFailed"), e);
  }
  mapperListener.start();
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

/**
 * Begin processing requests via this Connector.
 *
 * @exception LifecycleException if a fatal startup error occurs
 */
@Override
protected void startInternal() throws LifecycleException {
  setState(LifecycleState.STARTING);
  try {
    protocolHandler.start();
  } catch (Exception e) {
    String errPrefix = "";
    if(this.service != null) {
      errPrefix += "service.getName(): \"" + this.service.getName() + "\"; ";
    }
    throw new LifecycleException
      (errPrefix + " " + sm.getString
       ("coyoteConnector.protocolHandlerStartFailed"), e);
  }
  mapperListener.start();
}

代码示例来源:origin: codefollower/Tomcat-Research

/**
 * Begin processing requests via this Connector.
 *
 * @exception LifecycleException if a fatal startup error occurs
 */
@Override
protected void startInternal() throws LifecycleException {
  // Validate settings before starting
  if (getPort() < 0) {
    throw new LifecycleException(sm.getString(
        "coyoteConnector.invalidPort", Integer.valueOf(getPort())));
  }
  setState(LifecycleState.STARTING);
  try {
    protocolHandler.start();
  } catch (Exception e) {
    String errPrefix = "";
    if(this.service != null) {
      errPrefix += "service.getName(): \"" + this.service.getName() + "\"; ";
    }
    throw new LifecycleException
      (errPrefix + " " + sm.getString
       ("coyoteConnector.protocolHandlerStartFailed"), e);
  }
}

代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina

/**
 * Begin processing requests via this Connector.
 *
 * @exception LifecycleException if a fatal startup error occurs
 */
@Override
protected void startInternal() throws LifecycleException {
  // Validate settings before starting
  if (getPort() < 0) {
    throw new LifecycleException(sm.getString(
        "coyoteConnector.invalidPort", Integer.valueOf(getPort())));
  }
  setState(LifecycleState.STARTING);
  try {
    protocolHandler.start();
  } catch (Exception e) {
    String errPrefix = "";
    if(this.service != null) {
      errPrefix += "service.getName(): \"" + this.service.getName() + "\"; ";
    }
    throw new LifecycleException
      (errPrefix + " " + sm.getString
       ("coyoteConnector.protocolHandlerStartFailed"), e);
  }
  mapperListener.start();
}

代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina

/**
 * Begin processing requests via this Connector.
 *
 * @exception LifecycleException if a fatal startup error occurs
 */
@Override
protected void startInternal() throws LifecycleException {
  // Validate settings before starting
  if (getPort() < 0) {
    throw new LifecycleException(sm.getString(
        "coyoteConnector.invalidPort", Integer.valueOf(getPort())));
  }
  setState(LifecycleState.STARTING);
  try {
    protocolHandler.start();
  } catch (Exception e) {
    String errPrefix = "";
    if(this.service != null) {
      errPrefix += "service.getName(): \"" + this.service.getName() + "\"; ";
    }
    throw new LifecycleException
      (errPrefix + " " + sm.getString
       ("coyoteConnector.protocolHandlerStartFailed"), e);
  }
  mapperListener.start();
}

相关文章

Connector类方法