org.apache.coyote.Adapter.asyncDispatch()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(106)

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

Adapter.asyncDispatch介绍

暂无

代码示例

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

try {
  rp.setStage(org.apache.coyote.Constants.STAGE_SERVICE);
  error = !adapter.asyncDispatch(request, response, status);
} catch (InterruptedIOException e) {
  error = true;

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

public SocketState asyncDispatch(SocketStatus status) {
  RequestInfo rp = request.getRequestProcessor();
  try {
    rp.setStage(org.apache.coyote.Constants.STAGE_SERVICE);
    error = !adapter.asyncDispatch(request, response, status);
  } catch (InterruptedIOException e) {
    error = true;
  } catch (Throwable t) {
    ExceptionUtils.handleThrowable(t);
    log.error(sm.getString("http11processor.request.process"), t);
    // 500 - Internal Server Error
    response.setStatus(500);
    adapter.log(request, response, 0);
    error = true;
  }
  rp.setStage(org.apache.coyote.Constants.STAGE_ENDED);
  if (error) {
    recycle();
    return SocketState.CLOSED;
  } else if (isAsync()) {
    return SocketState.LONG;
  } else {
    recycle();
    if (!keepAlive) {
      return SocketState.CLOSED;
    } else {
      return SocketState.OPEN;
    }
  }
}

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

try {
  rp.setStage(org.apache.coyote.Constants.STAGE_SERVICE);
  error = !adapter.asyncDispatch(request, response, status);
} catch (InterruptedIOException e) {
  error = true;

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

try {
  rp.setStage(org.apache.coyote.Constants.STAGE_SERVICE);
  error = !adapter.asyncDispatch(request, response, status);
} catch (InterruptedIOException e) {
  error = true;

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

try {
  rp.setStage(org.apache.coyote.Constants.STAGE_SERVICE);
  error = !adapter.asyncDispatch(request, response, status);
  resetTimeouts();
} catch (InterruptedIOException e) {

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

try {
  rp.setStage(org.apache.coyote.Constants.STAGE_SERVICE);
  error = !adapter.asyncDispatch(request, response, status);
} catch (InterruptedIOException e) {
  error = true;

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

try {
  rp.setStage(org.apache.coyote.Constants.STAGE_SERVICE);
  error = !adapter.asyncDispatch(request, response, status);
} catch (InterruptedIOException e) {
  error = true;

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

try {
  rp.setStage(org.apache.coyote.Constants.STAGE_SERVICE);
  error = !adapter.asyncDispatch(request, response, status);
  resetTimeouts();
} catch (InterruptedIOException e) {

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

try {
  rp.setStage(org.apache.coyote.Constants.STAGE_SERVICE);
  error = !adapter.asyncDispatch(request, response, status);
  if ( !error ) {
    if (attach != null) {

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

try {
  rp.setStage(org.apache.coyote.Constants.STAGE_SERVICE);
  error = !getAdapter().asyncDispatch(request, response, status);
  resetTimeouts();
} catch (InterruptedIOException e) {

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

try {
  rp.setStage(org.apache.coyote.Constants.STAGE_SERVICE);
  error = !getAdapter().asyncDispatch(request, response, status);
  resetTimeouts();
} catch (InterruptedIOException e) {

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

try {
  rp.setStage(org.apache.coyote.Constants.STAGE_SERVICE);
  if (!getAdapter().asyncDispatch(request, response, status)) {
    setErrorState(ErrorState.CLOSE_NOW, null);

相关文章