org.apache.catalina.Pipeline.isAsyncSupported()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(8.8k)|赞(0)|评价(0)|浏览(117)

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

Pipeline.isAsyncSupported介绍

[英]Returns true if all the valves in this pipeline support async, false otherwise
[中]如果此管道中的所有阀门都支持异步,则返回true,否则返回false

代码示例

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

request.setAsyncSupported(context.getPipeline().isAsyncSupported());

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

request.setAsyncSupported(context.getPipeline().isAsyncSupported());

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

request.setAsyncSupported(context.getPipeline().isAsyncSupported());

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

/**
   * Select the appropriate child Host to process this request,
   * based on the requested server name.  If no matching Host can
   * be found, return an appropriate HTTP error.
   *
   * @param request Request to be processed
   * @param response Response to be produced
   *
   * @exception IOException if an input/output error occurred
   * @exception ServletException if a servlet error occurred
   */
  @Override
  public final void invoke(Request request, Response response)
    throws IOException, ServletException {

    // Select the Host to be used for this Request
    Host host = request.getHost();
    if (host == null) {
      // HTTP 0.9 or HTTP 1.0 request without a host when no default host
      // is defined. This is handled by the CoyoteAdapter.
      return;
    }
    if (request.isAsyncSupported()) {
      request.setAsyncSupported(host.getPipeline().isAsyncSupported());
    }

    // Ask this Host to process this request
    host.getPipeline().getFirst().invoke(request, response);
  }
}

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

/**
   * Select the appropriate child Host to process this request,
   * based on the requested server name.  If no matching Host can
   * be found, return an appropriate HTTP error.
   *
   * @param request Request to be processed
   * @param response Response to be produced
   *
   * @exception IOException if an input/output error occurred
   * @exception ServletException if a servlet error occurred
   */
  @Override
  public final void invoke(Request request, Response response)
    throws IOException, ServletException {

    // Select the Host to be used for this Request
    Host host = request.getHost();
    if (host == null) {
      // HTTP 0.9 or HTTP 1.0 request without a host when no default host
      // is defined. This is handled by the CoyoteAdapter.
      return;
    }
    if (request.isAsyncSupported()) {
      request.setAsyncSupported(host.getPipeline().isAsyncSupported());
    }

    // Ask this Host to process this request
    host.getPipeline().getFirst().invoke(request, response);
  }
}

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

/**
 * Select the appropriate child Host to process this request,
 * based on the requested server name.  If no matching Host can
 * be found, return an appropriate HTTP error.
 *
 * @param request Request to be processed
 * @param response Response to be produced
 *
 * @exception IOException if an input/output error occurred
 * @exception ServletException if a servlet error occurred
 */
@Override
public final void invoke(Request request, Response response)
  throws IOException, ServletException {
  // Select the Host to be used for this Request
  Host host = request.getHost();
  if (host == null) {
    response.sendError
      (HttpServletResponse.SC_BAD_REQUEST,
       sm.getString("standardEngine.noHost", 
             request.getServerName()));
    return;
  }
  if (request.isAsyncSupported()) {
    request.setAsyncSupported(host.getPipeline().isAsyncSupported());
  }
  // Ask this Host to process this request
  host.getPipeline().getFirst().invoke(request, response);
}

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

/**
 * Select the appropriate child Host to process this request,
 * based on the requested server name.  If no matching Host can
 * be found, return an appropriate HTTP error.
 *
 * @param request Request to be processed
 * @param response Response to be produced
 *
 * @exception IOException if an input/output error occurred
 * @exception ServletException if a servlet error occurred
 */
@Override
public final void invoke(Request request, Response response)
  throws IOException, ServletException {
  // Select the Host to be used for this Request
  Host host = request.getHost();
  if (host == null) {
    response.sendError
      (HttpServletResponse.SC_BAD_REQUEST,
       sm.getString("standardEngine.noHost",
             request.getServerName()));
    return;
  }
  if (request.isAsyncSupported()) {
    request.setAsyncSupported(host.getPipeline().isAsyncSupported());
  }
  // Ask this Host to process this request
  host.getPipeline().getFirst().invoke(request, response);
}

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

/**
 * Select the appropriate child Host to process this request,
 * based on the requested server name.  If no matching Host can
 * be found, return an appropriate HTTP error.
 *
 * @param request Request to be processed
 * @param response Response to be produced
 *
 * @exception IOException if an input/output error occurred
 * @exception ServletException if a servlet error occurred
 */
@Override
public final void invoke(Request request, Response response)
  throws IOException, ServletException {
  // Select the Host to be used for this Request
  Host host = request.getHost();
  if (host == null) {
    response.sendError
      (HttpServletResponse.SC_BAD_REQUEST,
       sm.getString("standardEngine.noHost", 
             request.getServerName()));
    return;
  }
  if (request.isAsyncSupported()) {
    request.setAsyncSupported(host.getPipeline().isAsyncSupported());
  }
  // Ask this Host to process this request
  host.getPipeline().getFirst().invoke(request, response);
}

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

/**
 * Select the appropriate child Host to process this request,
 * based on the requested server name.  If no matching Host can
 * be found, return an appropriate HTTP error.
 *
 * @param request Request to be processed
 * @param response Response to be produced
 *
 * @exception IOException if an input/output error occurred
 * @exception ServletException if a servlet error occurred
 */
@Override
public final void invoke(Request request, Response response)
  throws IOException, ServletException {
  // Select the Host to be used for this Request
  Host host = request.getHost();
  if (host == null) {
    response.sendError
      (HttpServletResponse.SC_BAD_REQUEST,
       sm.getString("standardEngine.noHost", 
             request.getServerName()));
    return;
  }
  if (request.isAsyncSupported()) {
    request.setAsyncSupported(host.getPipeline().isAsyncSupported());
  }
  // Ask this Host to process this request
  host.getPipeline().getFirst().invoke(request, response);
}

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

/**
 * Select the appropriate child Host to process this request,
 * based on the requested server name.  If no matching Host can
 * be found, return an appropriate HTTP error.
 *
 * @param request Request to be processed
 * @param response Response to be produced
 *
 * @exception IOException if an input/output error occurred
 * @exception ServletException if a servlet error occurred
 */
@Override
public final void invoke(Request request, Response response)
  throws IOException, ServletException {
  // Select the Host to be used for this Request
  Host host = request.getHost();
  if (host == null) {
    response.sendError
      (HttpServletResponse.SC_BAD_REQUEST,
       sm.getString("standardEngine.noHost", 
             request.getServerName()));
    return;
  }
  if (request.isAsyncSupported()) {
    request.setAsyncSupported(host.getPipeline().isAsyncSupported());
  }
  // Ask this Host to process this request
  host.getPipeline().getFirst().invoke(request, response);
}

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

/**
 * Select the appropriate child Host to process this request,
 * based on the requested server name.  If no matching Host can
 * be found, return an appropriate HTTP error.
 *
 * @param request Request to be processed
 * @param response Response to be produced
 *
 * @exception IOException if an input/output error occurred
 * @exception ServletException if a servlet error occurred
 */
@Override
public final void invoke(Request request, Response response)
  throws IOException, ServletException {
  // Select the Host to be used for this Request
  Host host = request.getHost();
  if (host == null) {
    response.sendError
      (HttpServletResponse.SC_BAD_REQUEST,
       sm.getString("standardEngine.noHost", 
             request.getServerName()));
    return;
  }
  if (request.isAsyncSupported()) {
    request.setAsyncSupported(host.getPipeline().isAsyncSupported());
  }
  // Ask this Host to process this request
  host.getPipeline().getFirst().invoke(request, response);
}

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

request.setAsyncSupported(wrapper.getPipeline().isAsyncSupported());

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

request.setAsyncSupported(wrapper.getPipeline().isAsyncSupported());

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

request.setAsyncSupported(wrapper.getPipeline().isAsyncSupported());

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

request.setAsyncSupported(context.getPipeline().isAsyncSupported());

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

request.setAsyncSupported(wrapper.getPipeline().isAsyncSupported());

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

request.setAsyncSupported(wrapper.getPipeline().isAsyncSupported());

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

request.setAsyncSupported(wrapper.getPipeline().isAsyncSupported());

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

request.setAsyncSupported(wrapper.getPipeline().isAsyncSupported());

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

if (postParseSuccess) {
  request.setAsyncSupported(connector.getService().getContainer().getPipeline().isAsyncSupported());

相关文章