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))