public final class BlacklistHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
APP_NAME
Used for logging.
|
Modifier | Constructor and Description |
---|---|
private |
BlacklistHelper()
Private constructor to avoid instantiation of static helper class.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
addBlacklistEntry(java.lang.String blacklistToUse,
java.lang.String entry,
RequestHeader header)
Adds a new entry to the chosen blacklist.
|
static java.lang.String |
deleteBlacklistEntry(java.lang.String blacklistToUse,
java.lang.String entry,
RequestHeader header)
Deletes a blacklist entry.
|
public static final java.lang.String APP_NAME
private BlacklistHelper()
public static java.lang.String addBlacklistEntry(java.lang.String blacklistToUse, java.lang.String entry, RequestHeader header)
blacklistToUse
- the name of the blacklist the entry is to be added tonewEntry
- the entry that is to be addedheader
- supportedBlacklistTypes
- public static java.lang.String deleteBlacklistEntry(java.lang.String blacklistToUse, java.lang.String entry, RequestHeader header)
blacklistToUse
- the name of the blacklist the entry is to be deleted fromentry
- the entry that is to be deletedheader
- supportedBlacklistTypes
-