private void filterAfter ( Route route ) { try { List < HttpSupportFilter > filters = Configuration . getFilters ( ) ; for ( int i = filters . size ( ) - 1 ; i >= 0 ; i -- ) { HttpSupportFilter filter = filters . get ( i ) ; if ( Configuration . getFilterMetadata ( filter ) . matches ( route ) ) { LOGGER . debug ( "Executing filter: " + filter . getClass ( ) . getName ( ) + "#after" ) ; filters . get ( i ) . after ( ) ; } else { LOGGER . debug ( "Filter: " + filter . getClass ( ) . getName ( ) + "#after does not match route: " + route ) ; } } } catch ( Exception e ) { throw new FilterException ( e ) ; } }
Run filters in opposite order