Пример #1
0
 private String getName(FilterConfiguration filter) {
   if (filter.getName() != null) return filter.getName();
   return filter.getClass().getName();
 }
Пример #2
0
 private Class<? extends Filter> getClass(FilterConfiguration filter) {
   if (filter.getFilter() != null) return filter.getFilter();
   return (Class<? extends Filter>) filter.getClass();
 }
Пример #3
0
 private Dynamic setInitParameters(Dynamic addFilter, FilterConfiguration filter) {
   addFilter.setInitParameters(filter.getInitParameters());
   return addFilter;
 }
Пример #4
0
  private void logFilter(FilterConfiguration filter) {

    logger.info("Registering {} filter on {}", filter.getClass().getName(), filter.getMapping()[0]);
  }