|
|
@ -44,7 +44,7 @@ public class BlackListUrlFilter extends AbstractGatewayFilterFactory<BlackListUr |
|
|
|
|
|
|
|
|
|
|
|
public boolean matchBlacklist(String url) |
|
|
|
public boolean matchBlacklist(String url) |
|
|
|
{ |
|
|
|
{ |
|
|
|
return blacklistUrlPattern.isEmpty() ? false : blacklistUrlPattern.stream().filter(p -> p.matcher(url).find()).findAny().isPresent(); |
|
|
|
return !blacklistUrlPattern.isEmpty() && blacklistUrlPattern.stream().anyMatch(p -> p.matcher(url).find()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public List<String> getBlacklistUrl() |
|
|
|
public List<String> getBlacklistUrl() |
|
|
|