public WebConfig parse(InputStream inputStream, WebConfig webConfig) throws IOException { Map<String, String> configuredContextParams = webConfig.getConfiguredContextParams(); this.configuredContextParams = new HashMap<String, String>(configuredContextParams); List<ConfiguredServlet> configuredServlets = webConfig.getConfiguredServlets(); this.configuredServlets = new ArrayList<ConfiguredServlet>(configuredServlets); List<ConfiguredServletMapping> configuredServletMappings = webConfig.getConfiguredServletMappings(); this.configuredServletMappings = new ArrayList<ConfiguredServletMapping>(configuredServletMappings); try { saxParser.parse(inputStream, this); webConfig = new WebConfigImpl(this.configuredContextParams, this.configuredServlets, this.configuredServletMappings); saxParser.reset(); return webConfig; } catch (SAXException e) { logger.error(e); throw new IOException(e.getMessage()); } }
public WebConfig parse(InputStream inputStream, WebConfig webConfig) throws IOException { Map<String, String> configuredContextParams = webConfig.getConfiguredContextParams(); this.configuredContextParams = new HashMap<String, String>(configuredContextParams); List<ConfiguredServlet> configuredServlets = webConfig.getConfiguredServlets(); this.configuredServlets = new ArrayList<ConfiguredServlet>(configuredServlets); List<ConfiguredServletMapping> configuredServletMappings = webConfig.getConfiguredServletMappings(); this.configuredServletMappings = new ArrayList<ConfiguredServletMapping>(configuredServletMappings); try { saxParser.parse(inputStream, this); webConfig = new WebConfigImpl(this.configuredContextParams, this.configuredServlets, this.configuredServletMappings); saxParser.reset(); return webConfig; } catch (SAXException e) { logger.error(e); throw new IOException(e.getMessage()); } }
public WebConfig parse(InputStream inputStream, WebConfig webConfig) throws IOException { Map<String, String> configuredContextParams = webConfig.getConfiguredContextParams(); this.configuredContextParams = new HashMap<String, String>(configuredContextParams); List<ConfiguredServlet> configuredServlets = webConfig.getConfiguredServlets(); this.configuredServlets = new ArrayList<ConfiguredServlet>(configuredServlets); List<ConfiguredServletMapping> configuredServletMappings = webConfig.getConfiguredServletMappings(); this.configuredServletMappings = new ArrayList<ConfiguredServletMapping>(configuredServletMappings); try { saxParser.parse(inputStream, this); webConfig = new WebConfigImpl(this.configuredContextParams, this.configuredServlets, this.configuredServletMappings); saxParser.reset(); return webConfig; } catch (SAXException e) { logger.error(e); throw new IOException(e.getMessage()); } }
String defaultSuffixParam = webConfig.getConfiguredContextParams().get(ViewHandler.DEFAULT_SUFFIX_PARAM_NAME);
String defaultSuffixParam = webConfig.getConfiguredContextParams().get(ViewHandler.DEFAULT_SUFFIX_PARAM_NAME);
String defaultSuffixParam = webConfig.getConfiguredContextParams().get(ViewHandler.DEFAULT_SUFFIX_PARAM_NAME);