public static void resolveConflicts ( PatternCacheControl specificPattern , PatternCacheControl generalPattern ) { for ( Entry < Directive , String > entry : generalPattern . getDirectives ( ) . entrySet ( ) ) { Directive generalDirective = entry . getKey ( ) ; String generalValue = entry . getValue ( ) ; if ( generalValue == EMPTY_STRING_VALUE ) { specificPattern . setDirective ( generalDirective , EMPTY_STRING_VALUE ) ; } else { resolveValueConflicts ( generalDirective , generalValue , specificPattern ) ; } } }
Resolves directive conflicts between two PatternCacheControl objects