public PrettyConfig build() { final PrettyConfig config = new PrettyConfig(); config.setMappings(mappings); config.setGlobalRewriteRules(rewriteRules); return config; } }
public PrettyConfig build() { final PrettyConfig config = new PrettyConfig(); config.setMappings(mappings); config.setGlobalRewriteRules(rewriteRules); return config; } }
public PrettyConfig build() { final PrettyConfig config = new PrettyConfig(); config.setMappings(mappings); config.setGlobalRewriteRules(rewriteRules); return config; } }
public PrettyConfig build() { final PrettyConfig config = new PrettyConfig(); config.setMappings(mappings); config.setGlobalRewriteRules(rewriteRules); return config; } }
@Override public PrettyConfig loadConfiguration(ServletContext sc) { WebXmlParser webXmlParser = new WebXmlParser(); try { webXmlParser.parse(sc); } catch (IOException ex) { throw new RuntimeException(ex); } catch (SAXException ex) { throw new RuntimeException(ex); } BeanManager beanManager = (BeanManager) sc.getAttribute(BeanManagerServletContextListener.BEANMANAGER_SERVLETCONTEXT_KEY); ViewConfigStore store = BeanManagerUtils.getContextualInstance(beanManager, ViewConfigStore.class); List<UrlMapping> mappings = loadUrlMappings(store, webXmlParser.getFacesMapping()); PrettyConfig prettyConfig = new PrettyConfig(); prettyConfig.setMappings(mappings); return prettyConfig; }