Package org.apache.catalina.core

Examples of org.apache.catalina.core.ApplicationFilterChain


    }

    public boolean isAsyncSupported() {
        int filterChainCount = currentFilterChain;
        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;
View Full Code Here


            buf.append(" [async]");
        }
        buf.append("\r\n");
        int filterChainCount = currentFilterChain;
        for (int i = 0; i < filterChainCount; i++) {
            ApplicationFilterChain filterChain = filterChains.get(i);
            ApplicationFilterConfig[] filterConfigs = filterChain.getFilters();
            int n = filterChain.getFilterCount();
            int pos = filterChain.getPointer();
            for (int j = 0; j < n; j++) {
                FilterDef filterDef = filterConfigs[j].getFilterDef();
                if (pos == j) {
                    buf.append("-> ");
                } else {
                    buf.append("   ");
                }
                buf.append("[F] ").append(filterDef.getFilterName()).append(" [")
                    .append(filterDef.getFilterClass()).append("] ").append(filterDef.getAsyncSupported() ? "[A]" : "")
                    .append("\r\n");
            }
            if (pos == n) {
                buf.append("-> ");
            } else {
                buf.append("   ");
            }
            Wrapper wrapper = filterChain.getWrapper();
            buf.append("[S] ").append(wrapper.getName()).append(" [")
                .append(wrapper.getServletClass()).append("] ").append(wrapper.getAsyncSupported() ? "[A]" : "")
                .append("\r\n");
        }
        return buf.toString();
View Full Code Here

    }

    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;
View Full Code Here

            buf.append(" [async]");
        }
        buf.append("\r\n");
        int filterChainCount = currentFilterChain + 1;
        for (int i = 0; i < filterChainCount; i++) {
            ApplicationFilterChain filterChain = filterChains.get(i);
            ApplicationFilterConfig[] filterConfigs = filterChain.getFilters();
            int n = filterChain.getFilterCount();
            int pos = filterChain.getPointer();
            for (int j = 0; j < n; j++) {
                FilterDef filterDef = filterConfigs[j].getFilterDef();
                if (pos == j) {
                    buf.append("-> ");
                } else {
                    buf.append("   ");
                }
                buf.append("[F] ").append(filterDef.getFilterName()).append(" [")
                    .append(filterDef.getFilterClass()).append("] ").append(filterDef.getAsyncSupported() ? "[A]" : "")
                    .append("\r\n");
            }
            if (pos == n) {
                buf.append("-> ");
            } else {
                buf.append("   ");
            }
            Wrapper wrapper = filterChain.getWrapper();
            buf.append("[S] ").append(wrapper.getName()).append(" [")
                .append(wrapper.getServletClass()).append("] ").append(wrapper.getAsyncSupported() ? "[A]" : "")
                .append("\r\n");
        }
        return buf.toString();
View Full Code Here

    }

    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;
View Full Code Here

            buf.append(" [async]");
        }
        buf.append("\r\n");
        int filterChainCount = currentFilterChain + 1;
        for (int i = 0; i < filterChainCount; i++) {
            ApplicationFilterChain filterChain = filterChains.get(i);
            ApplicationFilterConfig[] filterConfigs = filterChain.getFilters();
            int n = filterChain.getFilterCount();
            int pos = filterChain.getPointer();
            for (int j = 0; j < n; j++) {
                FilterDef filterDef = filterConfigs[j].getFilterDef();
                if (pos == j) {
                    buf.append("-> ");
                } else {
                    buf.append("   ");
                }
                buf.append("[F] ").append(filterDef.getFilterName()).append(" [")
                    .append(filterDef.getFilterClass()).append("] ").append(filterDef.getAsyncSupported() ? "[A]" : "")
                    .append("\r\n");
            }
            if (pos == n) {
                buf.append("-> ");
            } else {
                buf.append("   ");
            }
            Wrapper wrapper = filterChain.getWrapper();
            buf.append("[S] ").append(wrapper.getName()).append(" [")
                .append(wrapper.getServletClass()).append("] ").append(wrapper.getAsyncSupported() ? "[A]" : "")
                .append("\r\n");
        }
        return buf.toString();
View Full Code Here

    }

    public boolean isAsyncSupported() {
        int filterChainCount = currentFilterChain;
        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;
View Full Code Here

            buf.append(" [async]");
        }
        buf.append("\r\n");
        int filterChainCount = currentFilterChain;
        for (int i = 0; i < filterChainCount; i++) {
            ApplicationFilterChain filterChain = filterChains.get(i);
            ApplicationFilterConfig[] filterConfigs = filterChain.getFilters();
            int n = filterChain.getFilterCount();
            int pos = filterChain.getPointer();
            for (int j = 0; j < n; j++) {
                FilterDef filterDef = filterConfigs[j].getFilterDef();
                if (pos == j) {
                    buf.append("-> ");
                } else {
                    buf.append("   ");
                }
                buf.append("[F] ").append(filterDef.getFilterName()).append(" [")
                    .append(filterDef.getFilterClass()).append("] ").append(filterDef.getAsyncSupported() ? "[A]" : "")
                    .append("\r\n");
            }
            if (pos == n) {
                buf.append("-> ");
            } else {
                buf.append("   ");
            }
            Wrapper wrapper = filterChain.getWrapper();
            buf.append("[S] ").append(wrapper.getName()).append(" [")
                .append(wrapper.getServletClass()).append("] ").append(wrapper.getAsyncSupported() ? "[A]" : "")
                .append("\r\n");
        }
        return buf.toString();
View Full Code Here

TOP

Related Classes of org.apache.catalina.core.ApplicationFilterChain

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.