FileTimeValidatorValve

Validates that a file datetime is within the given range.

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
dest The item property containing the result of the validation.
Possible values: 'SUCCESS' OR 'FAILED'
result Yes No

Example Configuration

{
    "name":"FileTimeValidatorValve",
    "config":{
	"value":"{{request.mydatetime}}",
	"not_before":"{{request.beforedatetime}}",
        "not_after":"{{request.afterdatetime}}",
        "dest":"validated_datetime"
    }
}

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.00Zsyntax.