protected boolean add(Entry entry) { if (_entries.containsKey(entry.getPattern())) return false; _entries.put(entry.getPattern(),entry); if (entry instanceof LocationEntry || entry instanceof ModuleEntry) { if (entry.isInclusive()) _locations.include(entry); else _locations.exclude(entry); } else { if (entry.isInclusive()) _patterns.include(entry); else _patterns.exclude(entry); } return true; }
/** * Add an exclude PathMatcher * * @param matcher * the path matcher for this exclude */ public void addExclude(PathMatcher matcher) { includeExclude.exclude(matcher); }
/** * Excludes an InetAddress pattern * * @param pattern InetAddress pattern to exclude * @see InetAddressSet */ public void exclude(String pattern) { _set.exclude(pattern); }
/** * Exclude a InetAddress pattern * @see InetAddressSet * @param pattern InetAddress pattern to exclude */ public void exclude(String pattern) { _set.exclude(pattern); }
/** * Include a InetAddress pattern * @see InetAddressSet * @param patterns InetAddress patterns to exclude */ public void exclude(String... patterns) { _set.exclude(patterns); }
/** * Excludes InetAddress patterns * * @param patterns InetAddress patterns to exclude * @see InetAddressSet */ public void exclude(String... patterns) { _set.exclude(patterns); }
/** * Add an exclude PathMatcher * * @param matcher * the path matcher for this exclude */ public void addExclude(PathMatcher matcher) { includeExclude.exclude(matcher); }
@ManagedOperation("Exclude IP from thread limits") public void exclude(String inetAddressPattern) { _includeExcludeSet.exclude(inetAddressPattern); }
protected boolean add(Entry entry) { if (_entries.containsKey(entry.getPattern())) return false; _entries.put(entry.getPattern(),entry); if (entry instanceof LocationEntry || entry instanceof ModuleEntry) { if (entry.isInclusive()) _locations.include(entry); else _locations.exclude(entry); } else { if (entry.isInclusive()) _patterns.include(entry); else _patterns.exclude(entry); } return true; }