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

x33g5p2x  于2022-02-02 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(169)

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

Wrapper.getAsyncSupported介绍

[英]Return the async supported value.
[中]返回异步支持的值。

代码示例

代码示例来源:origin: org.jboss.web/jbossweb

.append(wrapper.getServletClass()).append("] ").append(wrapper.getAsyncSupported() ? "[A]" : "")
.append("\r\n");

代码示例来源:origin: jboss.web/jbossweb

.append(wrapper.getServletClass()).append("] ").append(wrapper.getAsyncSupported() ? "[A]" : "")
.append("\r\n");

代码示例来源:origin: org.jboss.web/jbossweb

public boolean isAsyncSupported() {
  int filterChainCount = currentFilterChain + 1;
  for (int i = 0; i < filterChainCount; i++) {
    ApplicationFilterChain filterChain = filterChains.get(i);
    int n = filterChain.getFilterCount();
    int pos = filterChain.getPointer();
    int lastFilter = pos;
    if (pos == n + 1) {
      lastFilter = n;
    }
    for (int j = 0; j < lastFilter; j++) {
      if (!filterChain.getFilters()[j].getFilterDef().getAsyncSupported()) {
        return false;
      }
    }
    if (pos == n + 1) {
      if (!filterChain.getWrapper().getAsyncSupported()) {
        return false;
      }
    }
  }
  return true;
}

代码示例来源:origin: jboss.web/jbossweb

public boolean isAsyncSupported() {
  int filterChainCount = currentFilterChain + 1;
  for (int i = 0; i < filterChainCount; i++) {
    ApplicationFilterChain filterChain = filterChains.get(i);
    int n = filterChain.getFilterCount();
    int pos = filterChain.getPointer();
    int lastFilter = pos;
    if (pos == n + 1) {
      lastFilter = n;
    }
    for (int j = 0; j < lastFilter; j++) {
      if (!filterChain.getFilters()[j].getFilterDef().getAsyncSupported()) {
        return false;
      }
    }
    if (pos == n + 1) {
      if (!filterChain.getWrapper().getAsyncSupported()) {
        return false;
      }
    }
  }
  return true;
}

相关文章