WhiteBlackList.WhiteBlackListLeafname
public static class WhiteBlackList.WhiteBlackListWholeString extends WhiteBlackList
WhiteBlackList.WhiteBlackListLeafname, WhiteBlackList.WhiteBlackListPrefix, WhiteBlackList.WhiteBlackListWholeString
blacklist, blacklistGlobs, blacklistPatterns, blacklistPrefixes, whitelist, whitelistGlobs, whitelistPatterns, whitelistPrefixes
Constructor | Description |
---|---|
WhiteBlackListWholeString() |
Modifier and Type | Method | Description |
---|---|---|
void |
addToBlacklist(String str) |
Add to the blacklist.
|
void |
addToWhitelist(String str) |
Add to the whitelist.
|
boolean |
isBlacklisted(String str) |
Check if the requested string is blacklisted.
|
boolean |
isWhitelisted(String str) |
Check if the requested string is whitelisted.
|
boolean |
isWhitelistedAndNotBlacklisted(String str) |
Check if the requested string is whitelisted and not blacklisted.
|
boolean |
whitelistHasPrefix(String str) |
Check if the requested string is a prefix of a whitelisted string.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
classNameToClassfilePath, globToPattern, isSpecificallyWhitelisted, isSpecificallyWhitelistedAndNotBlacklisted, normalizePackageOrClassName, normalizePath, packageNameToPath, pathToPackageName, sortPrefixes, toString, whitelistIsEmpty
public void addToWhitelist(String str)
addToWhitelist
in class WhiteBlackList
str
- The string to whitelist.public void addToBlacklist(String str)
addToBlacklist
in class WhiteBlackList
str
- The string to blacklist.public boolean isWhitelistedAndNotBlacklisted(String str)
isWhitelistedAndNotBlacklisted
in class WhiteBlackList
str
- The string to test.public boolean isWhitelisted(String str)
isWhitelisted
in class WhiteBlackList
str
- The string to test.public boolean whitelistHasPrefix(String str)
whitelistHasPrefix
in class WhiteBlackList
str
- The string to test.public boolean isBlacklisted(String str)
isBlacklisted
in class WhiteBlackList
str
- The string to test.Copyright © 2018. All rights reserved.