|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@PublicApi public interface WhitelistManager
Manager to control whitelist rules currently used for allowing which http requests gadgets are allowed to make. This can be used in future to whitelist any http requests!
Method Summary | |
---|---|
List<String> |
getRules()
Returns a list of rules that are currently allowed in the whitelist. |
boolean |
isAllowed(URI uri)
Checks if requests to the provided URI are allowed according to the current whitelist configuration |
boolean |
isDisabled()
Returns true if the whitelist is currently disabled (meaning all requests are allowed). |
List<String> |
updateRules(List<String> rules,
boolean disabled)
Used to update the whitelist configuration. |
Method Detail |
---|
List<String> getRules()
List<String> updateRules(List<String> rules, boolean disabled)
rules
- List of rules to persistdisabled
- True if the whitelist should be switched off
boolean isAllowed(URI uri)
uri
- The uri a http request is made to
boolean isDisabled()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |