Package org.netbeans.modules.j2ee.dd.api.web

Examples of org.netbeans.modules.j2ee.dd.api.web.Filter


        }

        protected Filter addFilter(WebApp webApp, String name, String classname,
                String pattern, Map<String, String> initParams,
                FilterMappingDispatcher mappingDispatcher) throws IOException {
            Filter filter = (Filter) createBean(webApp, "Filter");
            filter.setFilterName(name);
            filter.setFilterClass(classname);
           
            if(null != initParams){
                for(String paramName: initParams.keySet()){
                    InitParam ip = (InitParam) createBean(webApp, "InitParam");
                    ip.setParamName(paramName);
                    ip.setParamValue(initParams.get(paramName));
                   
                    filter.addInitParam(ip);
                }
            }
           
            webApp.addFilter(filter);
            if (pattern != null) {
View Full Code Here

TOP

Related Classes of org.netbeans.modules.j2ee.dd.api.web.Filter

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.