public static class HeaderValidationRequestPolicy.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
HeaderValidationRequestPolicy |
build() |
HeaderValidationRequestPolicy.Builder |
copy(HeaderValidationRequestPolicy model) |
HeaderValidationRequestPolicy.Builder |
headers(List<HeaderValidationItem> headers) |
HeaderValidationRequestPolicy.Builder |
validationMode(HeaderValidationRequestPolicy.ValidationMode validationMode)
Validation behavior mode.
|
public HeaderValidationRequestPolicy.Builder headers(List<HeaderValidationItem> headers)
public HeaderValidationRequestPolicy.Builder validationMode(HeaderValidationRequestPolicy.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 HeaderValidationRequestPolicy build()
public HeaderValidationRequestPolicy.Builder copy(HeaderValidationRequestPolicy model)
Copyright © 2016–2024. All rights reserved.