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

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

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

Pipeline.findNonAsyncValves介绍

[英]Identifies the Valves, if any, in this Pipeline that do not support async.
[中]标识此管道中不支持异步的阀门(如果有)。

代码示例

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

private Set<String> getNonAsyncClassNames() {
  Set<String> result = new HashSet<>();
  Wrapper wrapper = getWrapper();
  if (!wrapper.isAsyncSupported()) {
    result.add(wrapper.getServletClass());
  }
  FilterChain filterChain = getFilterChain();
  if (filterChain instanceof ApplicationFilterChain) {
    ((ApplicationFilterChain) filterChain).findNonAsyncFilters(result);
  } else {
    result.add(sm.getString("coyoteRequest.filterAsyncSupportUnknown"));
  }
  Container c = wrapper;
  while (c != null) {
    c.getPipeline().findNonAsyncValves(result);
    c = c.getParent();
  }
  return result;
}

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

private Set<String> getNonAsyncClassNames() {
  Set<String> result = new HashSet<>();
  Wrapper wrapper = getWrapper();
  if (!wrapper.isAsyncSupported()) {
    result.add(wrapper.getServletClass());
  }
  FilterChain filterChain = getFilterChain();
  if (filterChain instanceof ApplicationFilterChain) {
    ((ApplicationFilterChain) filterChain).findNonAsyncFilters(result);
  } else {
    result.add(sm.getString("coyoteRequest.filterAsyncSupportUnknown"));
  }
  Container c = wrapper;
  while (c != null) {
    c.getPipeline().findNonAsyncValves(result);
    c = c.getParent();
  }
  return result;
}

相关文章