Interface RouteValidationRule
- All Known Implementing Classes:
ClientTypesRule
,MissingParameterRule
,NullableParameterRule
,RequestBeanParameterRule
Describes a rule to validate a route.
- Since:
- 1.0
- Author:
- James Kleeh
-
Method Summary
Modifier and TypeMethodDescriptiondefault RouteValidationResult
validate
(UriMatchTemplate template, ParameterElement[] parameters, MethodElement method) Validate the given uri template and route arguments.validate
(List<UriMatchTemplate> templates, ParameterElement[] parameters, MethodElement method) Validate the given uri templates and route arguments.
-
Method Details
-
validate
default RouteValidationResult validate(UriMatchTemplate template, ParameterElement[] parameters, MethodElement method) Validate the given uri template and route arguments.- Parameters:
template
- The URI match templatesparameters
- The route parametersmethod
- The route method- Returns:
- A
RouteValidationResult
-
validate
RouteValidationResult validate(List<UriMatchTemplate> templates, ParameterElement[] parameters, MethodElement method) Validate the given uri templates and route arguments.- Parameters:
templates
- The URI match templatesparameters
- The route parametersmethod
- The route method- Returns:
- A
RouteValidationResult
-