use of org.atmosphere.util.FilterConfigImpl in project atmosphere by Atmosphere.
the class ReflectorServletProcessor method loadFilterInstances.
private void loadFilterInstances(ServletConfig sc) {
for (Filter f : filters) {
FilterConfigImpl fc = new FilterConfigImpl(sc);
fc.setFilter(f);
fc.setFilterName(f.getClass().getSimpleName());
filterChain.addFilter(fc);
logger.info("Installing Filter {}", f.getClass().getSimpleName());
}
}
use of org.atmosphere.util.FilterConfigImpl in project atmosphere by Atmosphere.
the class ReflectorServletProcessor method loadFilterClasses.
private void loadFilterClasses(ServletConfig sc, URLClassLoader urlC) throws Exception {
for (Map.Entry<String, String> fClassAndName : filtersClassAndNames.entrySet()) {
String fClass = fClassAndName.getKey();
String filterName = fClassAndName.getValue();
Filter f = loadFilter(urlC, fClass);
if (filterName == null) {
if (sc.getInitParameter(APPLICATION_NAME) != null) {
filterName = sc.getInitParameter(APPLICATION_NAME);
} else {
filterName = f.getClass().getSimpleName();
}
}
FilterConfigImpl fc = new FilterConfigImpl(sc);
fc.setFilter(f);
fc.setFilterName(filterName);
filterChain.addFilter(fc);
logger.info("Installing Filter {}", filterName);
}
}
Aggregations