Package org.graylog2.system.urlwhitelist
Class UrlWhitelist
java.lang.Object
org.graylog2.system.urlwhitelist.UrlWhitelist
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UrlWhitelist.Builderbuilder()static UrlWhitelistcreate(List<WhitelistEntry> entries, boolean disabled) static UrlWhitelistcreateEnabled(List<WhitelistEntry> entries) abstract booleandisabled()abstract List<WhitelistEntry>entries()booleanisWhitelisted(String url) Checks if a URL is whitelisted by looking for a whitelist entry matching the given url.abstract UrlWhitelist.Builder
-
Constructor Details
-
UrlWhitelist
public UrlWhitelist()
-
-
Method Details
-
entries
-
disabled
public abstract boolean disabled() -
create
-
createEnabled
-
toBuilder
-
isWhitelisted
Checks if a URL is whitelisted by looking for a whitelist entry matching the given url.- Parameters:
url- The URL to check.- Returns:
falseif the whitelist is enabled and no whitelist entry matches the given url.trueif there is a whitelist entry matching the given url or if the whitelist is disabled.
-
builder
-