public static class ValidationRequestPolicy.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ValidationRequestPolicy |
build() |
ValidationRequestPolicy.Builder |
copy(ValidationRequestPolicy model) |
ValidationRequestPolicy.Builder |
validationMode(ValidationRequestPolicy.ValidationMode validationMode)
Validation behavior mode.
|
public ValidationRequestPolicy.Builder validationMode(ValidationRequestPolicy.ValidationMode validationMode)
Validation behavior mode.
In ENFORCING
mode, upon a validation failure, the request will be rejected
with a 4xx response and not sent to the backend.
In PERMISSIVE
mode, the result of the validation will be exposed as metrics
while the request will follow the normal path.
DISABLED
type turns the validation off.
validationMode
- the value to setpublic ValidationRequestPolicy build()
public ValidationRequestPolicy.Builder copy(ValidationRequestPolicy model)
Copyright © 2016–2024. All rights reserved.