27
27
28
28
/** This file was automatically generated. */
29
29
@ SuppressWarnings ("javadoc" )
30
- public class AlertFilter {
30
+ public class AlertFilter extends org . zaproxy . clientapi . gen . deprecated . AlertFilterDeprecated {
31
31
32
32
private final ClientApi api ;
33
33
@@ -54,40 +54,13 @@ public ApiResponse alertFilterList(String contextid) throws ClientApiException {
54
54
public ApiResponse globalAlertFilterList () throws ClientApiException {
55
55
return api .callApi ("alertFilter" , "view" , "globalAlertFilterList" , null );
56
56
}
57
- /**
58
- * Adds a new alert filter for the context with the given ID.
59
- *
60
- * <p>This component is optional and therefore the API will only work if it is installed
61
- */
62
- public ApiResponse addAlertFilter (
63
- String contextid ,
64
- String ruleid ,
65
- String newlevel ,
66
- String url ,
67
- String urlisregex ,
68
- String parameter ,
69
- String enabled )
70
- throws ClientApiException {
71
- return addAlertFilter (
72
- contextid ,
73
- ruleid ,
74
- newlevel ,
75
- url ,
76
- urlisregex ,
77
- parameter ,
78
- enabled ,
79
- null ,
80
- null ,
81
- null ,
82
- null ,
83
- null );
84
- }
85
57
86
58
/**
87
59
* Adds a new alert filter for the context with the given ID.
88
60
*
89
61
* <p>This component is optional and therefore the API will only work if it is installed
90
62
*/
63
+ @ Override
91
64
public ApiResponse addAlertFilter (
92
65
String contextid ,
93
66
String ruleid ,
@@ -100,7 +73,8 @@ public ApiResponse addAlertFilter(
100
73
String attack ,
101
74
String attackisregex ,
102
75
String evidence ,
103
- String evidenceisregex )
76
+ String evidenceisregex ,
77
+ String methods )
104
78
throws ClientApiException {
105
79
Map <String , String > map = new HashMap <>();
106
80
map .put ("contextId" , contextid );
@@ -133,6 +107,9 @@ public ApiResponse addAlertFilter(
133
107
if (evidenceisregex != null ) {
134
108
map .put ("evidenceIsRegex" , evidenceisregex );
135
109
}
110
+ if (methods != null ) {
111
+ map .put ("methods" , methods );
112
+ }
136
113
return api .callApi ("alertFilter" , "action" , "addAlertFilter" , map );
137
114
}
138
115
@@ -141,35 +118,7 @@ public ApiResponse addAlertFilter(
141
118
*
142
119
* <p>This component is optional and therefore the API will only work if it is installed
143
120
*/
144
- public ApiResponse removeAlertFilter (
145
- String contextid ,
146
- String ruleid ,
147
- String newlevel ,
148
- String url ,
149
- String urlisregex ,
150
- String parameter ,
151
- String enabled )
152
- throws ClientApiException {
153
- return removeAlertFilter (
154
- contextid ,
155
- ruleid ,
156
- newlevel ,
157
- url ,
158
- urlisregex ,
159
- parameter ,
160
- enabled ,
161
- null ,
162
- null ,
163
- null ,
164
- null ,
165
- null );
166
- }
167
-
168
- /**
169
- * Removes an alert filter from the context with the given ID.
170
- *
171
- * <p>This component is optional and therefore the API will only work if it is installed
172
- */
121
+ @ Override
173
122
public ApiResponse removeAlertFilter (
174
123
String contextid ,
175
124
String ruleid ,
@@ -182,7 +131,8 @@ public ApiResponse removeAlertFilter(
182
131
String attack ,
183
132
String attackisregex ,
184
133
String evidence ,
185
- String evidenceisregex )
134
+ String evidenceisregex ,
135
+ String methods )
186
136
throws ClientApiException {
187
137
Map <String , String > map = new HashMap <>();
188
138
map .put ("contextId" , contextid );
@@ -215,6 +165,9 @@ public ApiResponse removeAlertFilter(
215
165
if (evidenceisregex != null ) {
216
166
map .put ("evidenceIsRegex" , evidenceisregex );
217
167
}
168
+ if (methods != null ) {
169
+ map .put ("methods" , methods );
170
+ }
218
171
return api .callApi ("alertFilter" , "action" , "removeAlertFilter" , map );
219
172
}
220
173
@@ -223,6 +176,7 @@ public ApiResponse removeAlertFilter(
223
176
*
224
177
* <p>This component is optional and therefore the API will only work if it is installed
225
178
*/
179
+ @ Override
226
180
public ApiResponse addGlobalAlertFilter (
227
181
String ruleid ,
228
182
String newlevel ,
@@ -234,7 +188,8 @@ public ApiResponse addGlobalAlertFilter(
234
188
String attack ,
235
189
String attackisregex ,
236
190
String evidence ,
237
- String evidenceisregex )
191
+ String evidenceisregex ,
192
+ String methods )
238
193
throws ClientApiException {
239
194
Map <String , String > map = new HashMap <>();
240
195
map .put ("ruleId" , ruleid );
@@ -266,6 +221,9 @@ public ApiResponse addGlobalAlertFilter(
266
221
if (evidenceisregex != null ) {
267
222
map .put ("evidenceIsRegex" , evidenceisregex );
268
223
}
224
+ if (methods != null ) {
225
+ map .put ("methods" , methods );
226
+ }
269
227
return api .callApi ("alertFilter" , "action" , "addGlobalAlertFilter" , map );
270
228
}
271
229
@@ -274,6 +232,7 @@ public ApiResponse addGlobalAlertFilter(
274
232
*
275
233
* <p>This component is optional and therefore the API will only work if it is installed
276
234
*/
235
+ @ Override
277
236
public ApiResponse removeGlobalAlertFilter (
278
237
String ruleid ,
279
238
String newlevel ,
@@ -285,7 +244,8 @@ public ApiResponse removeGlobalAlertFilter(
285
244
String attack ,
286
245
String attackisregex ,
287
246
String evidence ,
288
- String evidenceisregex )
247
+ String evidenceisregex ,
248
+ String methods )
289
249
throws ClientApiException {
290
250
Map <String , String > map = new HashMap <>();
291
251
map .put ("ruleId" , ruleid );
@@ -317,6 +277,9 @@ public ApiResponse removeGlobalAlertFilter(
317
277
if (evidenceisregex != null ) {
318
278
map .put ("evidenceIsRegex" , evidenceisregex );
319
279
}
280
+ if (methods != null ) {
281
+ map .put ("methods" , methods );
282
+ }
320
283
return api .callApi ("alertFilter" , "action" , "removeGlobalAlertFilter" , map );
321
284
}
322
285
0 commit comments