DateTimeValidatorValve
Note
Validates that a datetime is within the given range.
Value must be in one of following known date/time formats:
- ISO instant: 2020-02-03T10:16:16.441Z
- ISO offset: 2020-02-03T11:30:00.000+01:00
- ISO local time (no timezone, system default is used): 2020-02-03T11:30:00.000
- JDBC timestamp: 2020-02-03 11:30:00
Properties
Name | Description | Default value | Mandatory | Supports property expansion |
---|---|---|---|---|
value | The value used for validation. | Current time | No | Yes |
not_before | Not before value. | Current time | No | Yes |
not_after | Not after value. | Current time | No | Yes |
Example Configuration
{
"name":"DateTimeValidatorValve",
"config":{
"value":"{{request.mydatetime}}",
"not_before":"{{request.beforedatetime}}",
"not_after":"{{request.afterdatetime}}"
}
}
In the example above the values has been provided in the request.
Requirements
Expanded or static values must be in the "2014-12-03T10:15:30.00Z*"* syntax.