Class AlertFilter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAlertFilter(String contextid, String ruleid, String newlevel, String url, String urlisregex, String parameter, String enabled, String parameterisregex, String attack, String attackisregex, String evidence, String evidenceisregex, String methods) Adds a new alert filter for the context with the given ID.addGlobalAlertFilter(String ruleid, String newlevel, String url, String urlisregex, String parameter, String enabled, String parameterisregex, String attack, String attackisregex, String evidence, String evidenceisregex, String methods) Adds a new global alert filter.alertFilterList(String contextid) Lists the alert filters of the context with the given ID.applyAll()Applies all currently enabled Global and Context alert filters.Applies all currently enabled Context alert filters.Applies all currently enabled Global alert filters.Lists the global alert filters.removeAlertFilter(String contextid, String ruleid, String newlevel, String url, String urlisregex, String parameter, String enabled, String parameterisregex, String attack, String attackisregex, String evidence, String evidenceisregex, String methods) Removes an alert filter from the context with the given ID.removeGlobalAlertFilter(String ruleid, String newlevel, String url, String urlisregex, String parameter, String enabled, String parameterisregex, String attack, String attackisregex, String evidence, String evidenceisregex, String methods) Removes a global alert filter.testAll()Tests all currently enabled Global and Context alert filters.Tests all currently enabled Context alert filters.Tests all currently enabled Global alert filters.Methods inherited from class org.zaproxy.clientapi.gen.deprecated.AlertFilterDeprecated
addAlertFilter, addAlertFilter, addGlobalAlertFilter, removeAlertFilter, removeAlertFilter, removeGlobalAlertFilter
-
Constructor Details
-
AlertFilter
-
-
Method Details
-
alertFilterList
Lists the alert filters of the context with the given ID.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
globalAlertFilterList
Lists the global alert filters.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
addAlertFilter
public ApiResponse addAlertFilter(String contextid, String ruleid, String newlevel, String url, String urlisregex, String parameter, String enabled, String parameterisregex, String attack, String attackisregex, String evidence, String evidenceisregex, String methods) throws ClientApiException Adds a new alert filter for the context with the given ID.This component is optional and therefore the API will only work if it is installed
- Specified by:
addAlertFilterin classAlertFilterDeprecated- Throws:
ClientApiException
-
removeAlertFilter
public ApiResponse removeAlertFilter(String contextid, String ruleid, String newlevel, String url, String urlisregex, String parameter, String enabled, String parameterisregex, String attack, String attackisregex, String evidence, String evidenceisregex, String methods) throws ClientApiException Removes an alert filter from the context with the given ID.This component is optional and therefore the API will only work if it is installed
- Specified by:
removeAlertFilterin classAlertFilterDeprecated- Throws:
ClientApiException
-
addGlobalAlertFilter
public ApiResponse addGlobalAlertFilter(String ruleid, String newlevel, String url, String urlisregex, String parameter, String enabled, String parameterisregex, String attack, String attackisregex, String evidence, String evidenceisregex, String methods) throws ClientApiException Adds a new global alert filter.This component is optional and therefore the API will only work if it is installed
- Specified by:
addGlobalAlertFilterin classAlertFilterDeprecated- Throws:
ClientApiException
-
removeGlobalAlertFilter
public ApiResponse removeGlobalAlertFilter(String ruleid, String newlevel, String url, String urlisregex, String parameter, String enabled, String parameterisregex, String attack, String attackisregex, String evidence, String evidenceisregex, String methods) throws ClientApiException Removes a global alert filter.This component is optional and therefore the API will only work if it is installed
- Specified by:
removeGlobalAlertFilterin classAlertFilterDeprecated- Throws:
ClientApiException
-
applyAll
Applies all currently enabled Global and Context alert filters.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
applyContext
Applies all currently enabled Context alert filters.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
applyGlobal
Applies all currently enabled Global alert filters.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
testAll
Tests all currently enabled Global and Context alert filters.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
testContext
Tests all currently enabled Context alert filters.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
testGlobal
Tests all currently enabled Global alert filters.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-