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()); } }
.getName()); WebConfig webConfig = applicationConfig.getWebConfig(); List<ConfiguredServlet> configuredServlets = webConfig.getConfiguredServlets(); List<ConfiguredServletMapping> configuredServletMappings = webConfig.getConfiguredServletMappings();
protected MultiPartConfig getFacesServletMultiPartConfig(ExternalContext externalContext) { MultiPartConfig facesServletMultiPartConfig = null; String appConfigAttrName = ApplicationConfig.class.getName(); Map<String, Object> applicationMap = externalContext.getApplicationMap(); ApplicationConfig applicationConfig = (ApplicationConfig) applicationMap.get(appConfigAttrName); WebConfig webConfig = applicationConfig.getWebConfig(); List<ConfiguredServlet> configuredServlets = webConfig.getConfiguredServlets(); for (ConfiguredServlet configuredServlet : configuredServlets) { if (FACES_SERVLET_FQCN.equals(configuredServlet.getServletClass())) { facesServletMultiPartConfig = configuredServlet.getMultiPartConfig(); } } return facesServletMultiPartConfig; }
.getName()); WebConfig webConfig = applicationConfig.getWebConfig(); List<ConfiguredServlet> configuredServlets = webConfig.getConfiguredServlets(); List<ConfiguredServletMapping> configuredServletMappings = webConfig.getConfiguredServletMappings();
protected MultiPartConfig getFacesServletMultiPartConfig(ExternalContext externalContext) { MultiPartConfig facesServletMultiPartConfig = null; String appConfigAttrName = ApplicationConfig.class.getName(); Map<String, Object> applicationMap = externalContext.getApplicationMap(); ApplicationConfig applicationConfig = (ApplicationConfig) applicationMap.get(appConfigAttrName); WebConfig webConfig = applicationConfig.getWebConfig(); List<ConfiguredServlet> configuredServlets = webConfig.getConfiguredServlets(); for (ConfiguredServlet configuredServlet : configuredServlets) { if (FACES_SERVLET_FQCN.equals(configuredServlet.getServletClass())) { facesServletMultiPartConfig = configuredServlet.getMultiPartConfig(); } } return facesServletMultiPartConfig; }
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()); } }
.getName()); WebConfig webConfig = applicationConfig.getWebConfig(); List<ConfiguredServlet> configuredServlets = webConfig.getConfiguredServlets(); List<ConfiguredServletMapping> configuredServletMappings = webConfig.getConfiguredServletMappings();
protected MultiPartConfig getFacesServletMultiPartConfig(ExternalContext externalContext) { MultiPartConfig facesServletMultiPartConfig = null; String appConfigAttrName = ApplicationConfig.class.getName(); Map<String, Object> applicationMap = externalContext.getApplicationMap(); ApplicationConfig applicationConfig = (ApplicationConfig) applicationMap.get(appConfigAttrName); WebConfig webConfig = applicationConfig.getWebConfig(); List<ConfiguredServlet> configuredServlets = webConfig.getConfiguredServlets(); for (ConfiguredServlet configuredServlet : configuredServlets) { if (FACES_SERVLET_FQCN.equals(configuredServlet.getServletClass())) { facesServletMultiPartConfig = configuredServlet.getMultiPartConfig(); } } return facesServletMultiPartConfig; }
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()); } }
List<ConfiguredServlet> configuredServlets = webConfig.getConfiguredServlets(); List<ConfiguredServletMapping> configuredServletMappings = webConfig.getConfiguredServletMappings(); String defaultSuffixParam = webConfig.getConfiguredContextParams().get(ViewHandler.DEFAULT_SUFFIX_PARAM_NAME);
List<ConfiguredServlet> configuredServlets = webConfig.getConfiguredServlets(); List<ConfiguredServletMapping> configuredServletMappings = webConfig.getConfiguredServletMappings(); String defaultSuffixParam = webConfig.getConfiguredContextParams().get(ViewHandler.DEFAULT_SUFFIX_PARAM_NAME);
List<ConfiguredServlet> configuredServlets = webConfig.getConfiguredServlets(); List<ConfiguredServletMapping> configuredServletMappings = webConfig.getConfiguredServletMappings(); String defaultSuffixParam = webConfig.getConfiguredContextParams().get(ViewHandler.DEFAULT_SUFFIX_PARAM_NAME);