Ultrakompakter HTTP Server
ulrich
2024-02-23 821908f431da5815b0ca1d0c39f5f30c4c3ce0f3
Filter hinzugefuegt
1 files modified
16 ■■■■■ changed files
src/de/uhilger/neon/Factory.java 16 ●●●●● patch | view | raw | blame | history
src/de/uhilger/neon/Factory.java
@@ -200,13 +200,15 @@
        //    ctx.getAttributes().putAll(d.authenticator.attributes);
        //    fireAuthenticatorCreated(ctx, auth);
        //}
        for(String filterClassName : cd.filter) {
          //
          Object filterObj = Class.forName(filterClassName)
                .getDeclaredConstructor().newInstance();
          if(filterObj instanceof Filter) {
            Filter filter = (Filter) filterObj;
            ctx.getFilters().add(filter);
        if(cd.filter != null) {
          for(String filterClassName : cd.filter) {
            //
            Object filterObj = Class.forName(filterClassName)
                  .getDeclaredConstructor().newInstance();
            if(filterObj instanceof Filter) {
              Filter filter = (Filter) filterObj;
              ctx.getFilters().add(filter);
            }
          }
        }
        fireHandlerCreated(ctx, h);