public static class RequestProtection.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
RequestProtection.Builder |
bodyInspectionSizeLimitExceededActionName(String bodyInspectionSizeLimitExceededActionName)
References action by name from actions defined in WebAppFirewallPolicy.
|
RequestProtection.Builder |
bodyInspectionSizeLimitInBytes(Integer bodyInspectionSizeLimitInBytes)
Maximum size of inspected HTTP message body in bytes.
|
RequestProtection |
build() |
RequestProtection.Builder |
copy(RequestProtection model) |
RequestProtection.Builder |
rules(List<ProtectionRule> rules)
Ordered list of ProtectionRules.
|
public RequestProtection.Builder rules(List<ProtectionRule> rules)
Ordered list of ProtectionRules. Rules are executed in order of appearance in this array. ProtectionRules in this array can only use protection Capabilities of REQUEST_PROTECTION_CAPABILITY type.
rules
- the value to setpublic RequestProtection.Builder bodyInspectionSizeLimitInBytes(Integer bodyInspectionSizeLimitInBytes)
Maximum size of inspected HTTP message body in bytes. Actions to take if this limit is
exceeded are defined in bodyInspectionSizeLimitExceededActionName
.
Body inspection maximum size allowed is defined with per-tenancy limit: 8192 bytes.
bodyInspectionSizeLimitInBytes
- the value to setpublic RequestProtection.Builder bodyInspectionSizeLimitExceededActionName(String bodyInspectionSizeLimitExceededActionName)
References action by name from actions defined in WebAppFirewallPolicy. Executed if HTTP
message body size exceeds limit set in field bodyInspectionSizeLimitInBytes
.
If this field is null
HTTP message body will inspected up to bodyInspectionSizeLimitInBytes
and the rest will not be inspected by Protection
Capabilities.
Allowed action types: * **RETURN_HTTP_RESPONSE** terminates further execution of modules and rules and returns defined HTTP response.
bodyInspectionSizeLimitExceededActionName
- the value to setpublic RequestProtection build()
public RequestProtection.Builder copy(RequestProtection model)
Copyright © 2016–2024. All rights reserved.