Package com.alibaba.citrus.service.resource

Examples of com.alibaba.citrus.service.resource.ResourceFilter


        return new ResourceFilterChain() {
            private int i = 0;

            public Resource doFilter(ResourceMatchResult filterMatchResult, Set<ResourceLoadingOption> options)
                    throws ResourceNotFoundException {
                ResourceFilter filter;

                if (i < filters.length) {
                    filter = filters[i++];

                    String resourceName = filterMatchResult.getResourceName();

                    log.debug("Applying filter to resource \"{}\": {}", resourceName, filter);

                    return filter.doFilter(filterMatchResult, options, this);
                } else {
                    return root.doFilter(filterMatchResult, options);
                }
            }
        };
View Full Code Here


        return new ResourceFilterChain() {
            private int i = 0;

            public Resource doFilter(ResourceMatchResult filterMatchResult, Set<ResourceLoadingOption> options)
                    throws ResourceNotFoundException {
                ResourceFilter filter;

                if (i < filters.length) {
                    filter = filters[i++];

                    String resourceName = filterMatchResult.getResourceName();

                    log.debug("Applying filter to resource \"{}\": {}", resourceName, filter);

                    return filter.doFilter(filterMatchResult, options, this);
                } else {
                    return root.doFilter(filterMatchResult, options);
                }
            }
        };
View Full Code Here

        return new ResourceFilterChain() {
            private int i = 0;

            public Resource doFilter(ResourceMatchResult filterMatchResult, Set<ResourceLoadingOption> options)
                    throws ResourceNotFoundException {
                ResourceFilter filter;

                if (i < filters.length) {
                    filter = filters[i++];

                    String resourceName = filterMatchResult.getResourceName();

                    log.debug("Applying filter to resource \"{}\": {}", resourceName, filter);

                    return filter.doFilter(filterMatchResult, options, this);
                } else {
                    return root.doFilter(filterMatchResult, options);
                }
            }
        };
View Full Code Here

TOP

Related Classes of com.alibaba.citrus.service.resource.ResourceFilter

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.