Class RequestProtection.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • rules

        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.

        Parameters:
        rules - the value to set
        Returns:
        this builder
      • bodyInspectionSizeLimitInBytes

        public 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.

        Parameters:
        bodyInspectionSizeLimitInBytes - the value to set
        Returns:
        this builder
      • bodyInspectionSizeLimitExceededActionName

        public 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.

        Parameters:
        bodyInspectionSizeLimitExceededActionName - the value to set
        Returns:
        this builder