Package org.zaproxy.clientapi.gen
Class Replacer
java.lang.Object
org.zaproxy.clientapi.gen.deprecated.ReplacerDeprecated
org.zaproxy.clientapi.gen.Replacer
This file was automatically generated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRule
(String description, String enabled, String matchtype, String matchregex, String matchstring, String replacement, String initiators, String url) Adds a replacer rule.removeRule
(String description) Removes the rule with the given descriptionrules()
Returns full details of all of the rulessetEnabled
(String description, String bool) Enables or disables the rule with the given description based on the bool parameterMethods inherited from class org.zaproxy.clientapi.gen.deprecated.ReplacerDeprecated
addRule
-
Constructor Details
-
Replacer
-
-
Method Details
-
rules
Returns full details of all of the rulesThis component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
addRule
public ApiResponse addRule(String description, String enabled, String matchtype, String matchregex, String matchstring, String replacement, String initiators, String url) throws ClientApiException Adds a replacer rule. For the parameters: desc is a user friendly description, enabled is true or false, matchType is one of [REQ_HEADER, REQ_HEADER_STR, REQ_BODY_STR, RESP_HEADER, RESP_HEADER_STR, RESP_BODY_STR], matchRegex should be true if the matchString should be treated as a regex otherwise false, matchString is the string that will be matched against, replacement is the replacement string, initiators may be blank (for all initiators) or a comma separated list of integers as defined in Request Initiator ConstantsThis component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
removeRule
Removes the rule with the given descriptionThis component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setEnabled
Enables or disables the rule with the given description based on the bool parameterThis component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-