protected void addContext(Context context) { mapper.addContext(context.getParent().getName(), context.getName(), context, context.findWelcomeFiles(), context.getResources()); // Add all wrappers for (Container child : context.findChildren()) { Wrapper wrapper = (Wrapper) child; if (wrapper.getEnabled()) { for (String mapping : wrapper.findMappings()) { boolean jspWildCard = ("jsp".equals(wrapper.getName()) && mapping.endsWith("/*")); mapper.addWrapper(context.getParent().getName(), context.getName(), mapping, wrapper, jspWildCard); } } } }
protected void addContext(Context context) { mapper.addContext(context.getParent().getName(), context.getName(), context, context.findWelcomeFiles(), context.getResources()); // Add all wrappers for (Container child : context.findChildren()) { Wrapper wrapper = (Wrapper) child; if (wrapper.getEnabled()) { for (String mapping : wrapper.findMappings()) { boolean jspWildCard = ("jsp".equals(wrapper.getName()) && mapping.endsWith("/*")); mapper.addWrapper(context.getParent().getName(), context.getName(), mapping, wrapper, jspWildCard); } } } }
if (wrapper.getEnabled()) { mapper.addWrapper(pattern, wrapper, jspWildCard);
if (wrapper.getEnabled()) { mapper.addWrapper(pattern, wrapper, jspWildCard);