Class MissingParameterRule
java.lang.Object
io.micronaut.validation.routes.rules.MissingParameterRule
- All Implemented Interfaces:
RouteValidationRule
Validates all route uri variables are present in the route arguments.
- Since:
- 1.0
- Author:
- James Kleeh
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvalidate
(List<UriMatchTemplate> templates, ParameterElement[] parameters, MethodElement method) Validate the given uri templates and route arguments.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.validation.routes.rules.RouteValidationRule
validate
-
Constructor Details
-
MissingParameterRule
public MissingParameterRule()
-
-
Method Details
-
validate
public RouteValidationResult validate(List<UriMatchTemplate> templates, ParameterElement[] parameters, MethodElement method) Description copied from interface:RouteValidationRule
Validate the given uri templates and route arguments.- Specified by:
validate
in interfaceRouteValidationRule
- Parameters:
templates
- The URI match templatesparameters
- The route parametersmethod
- The route method- Returns:
- A
RouteValidationResult
-