Package org.apache.myfaces.commons.resourcehandler.webapp.config.element.impl

Examples of org.apache.myfaces.commons.resourcehandler.webapp.config.element.impl.ServletRegistrationImpl


                    return;
                }
               
                if ("servlet".equals(localName))
                {
                    ServletRegistrationImpl sr = (ServletRegistrationImpl) this.config.getServletRegistration(this.servletName);
                    if (sr == null)
                    {
                        sr = new ServletRegistrationImpl(this.servletName, this.servletClassName);
                    }
                    else
                    {
                        sr.setClassName(this.servletClassName);
                    }
                    this.config.getServletRegistrations().put(this.servletName, sr);
                }
                else if ("servlet-name".equals(localName))
                {
                    servletName = captureBuffer();
                }
                else if ("servlet-class".equals(localName))
                {
                    servletClassName = captureBuffer();
                }
                else if ("filter".equals(localName))
                {
                    FilterRegistrationImpl sr = (FilterRegistrationImpl) this.config.getFilterRegistration(this.filterName);
                    if (sr == null)
                    {
                        sr = new FilterRegistrationImpl(this.filterName, this.filterClassName);
                    }
                    else
                    {
                        sr.setClassName(this.filterClassName);
                    }
                    this.config.getFilterRegistrations().put(this.filterName, sr);
                }
                else if ("filter-name".equals(localName))
                {
                    filterName = captureBuffer();
                }
                else if ("filter-class".equals(localName))
                {
                    filterClassName = captureBuffer();
                }
                else if ("servlet-mapping".equals(localName))
                {
                    ServletRegistrationImpl sr = (ServletRegistrationImpl) this.config.getServletRegistration(this.servletName);
                    if (sr == null)
                    {
                        sr = new ServletRegistrationImpl(this.servletName);
                        this.config.getServletRegistrations().put(this.servletName, sr);
                    }
                    for (String url: urlPatterns)
                    {
                        sr.addMapping(url);
                    }
                }
                else if ("filter-mapping".equals(localName))
                {
                    FilterRegistrationImpl sr = (FilterRegistrationImpl) this.config.getFilterRegistration(this.filterName);
                    if (sr == null)
                    {
                        sr = new FilterRegistrationImpl(this.filterName);
                        this.config.getFilterRegistrations().put(this.filterName, sr);
                    }
                    for (String url: urlPatterns)
                    {
                        sr.addUrlNameMapping(url);
                    }
                    for (String name : servletNameMappings)
                    {
                        sr.addServletNameMapping(name);
                    }
                    urlPatterns.clear();
                    servletNameMappings.clear();
                }
                else if ("url-pattern".equals(localName))
View Full Code Here


                    return;
                }
               
                if ("servlet".equals(localName))
                {
                    ServletRegistrationImpl sr
                            = (ServletRegistrationImpl) this.config.getServletRegistration(this.servletName);
                    if (sr == null)
                    {
                        sr = new ServletRegistrationImpl(this.servletName, this.servletClassName);
                    }
                    else
                    {
                        sr.setClassName(this.servletClassName);
                    }
                    this.config.getServletRegistrations().put(this.servletName, sr);
                }
                else if ("servlet-name".equals(localName))
                {
                    servletName = captureBuffer();
                }
                else if ("servlet-class".equals(localName))
                {
                    servletClassName = captureBuffer();
                }
                else if ("filter".equals(localName))
                {
                    FilterRegistrationImpl sr
                            = (FilterRegistrationImpl) this.config.getFilterRegistration(this.filterName);
                    if (sr == null)
                    {
                        sr = new FilterRegistrationImpl(this.filterName, this.filterClassName);
                    }
                    else
                    {
                        sr.setClassName(this.filterClassName);
                    }
                    this.config.getFilterRegistrations().put(this.filterName, sr);
                }
                else if ("filter-name".equals(localName))
                {
                    filterName = captureBuffer();
                }
                else if ("filter-class".equals(localName))
                {
                    filterClassName = captureBuffer();
                }
                else if ("servlet-mapping".equals(localName))
                {
                    ServletRegistrationImpl sr
                            = (ServletRegistrationImpl) this.config.getServletRegistration(this.servletName);
                    if (sr == null)
                    {
                        sr = new ServletRegistrationImpl(this.servletName);
                        this.config.getServletRegistrations().put(this.servletName, sr);
                    }
                    for (String url: urlPatterns)
                    {
                        sr.addMapping(url);
                    }
                }
                else if ("filter-mapping".equals(localName))
                {
                    FilterRegistrationImpl sr
                            = (FilterRegistrationImpl) this.config.getFilterRegistration(this.filterName);
                    if (sr == null)
                    {
                        sr = new FilterRegistrationImpl(this.filterName);
                        this.config.getFilterRegistrations().put(this.filterName, sr);
                    }
                    for (String url: urlPatterns)
                    {
                        sr.addUrlNameMapping(url);
                    }
                    for (String name : servletNameMappings)
                    {
                        sr.addServletNameMapping(name);
                    }
                    urlPatterns.clear();
                    servletNameMappings.clear();
                }
                else if ("url-pattern".equals(localName))
View Full Code Here

TOP

Related Classes of org.apache.myfaces.commons.resourcehandler.webapp.config.element.impl.ServletRegistrationImpl

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.