Class ClientTypesRule
java.lang.Object
io.micronaut.validation.routes.rules.ClientTypesRule
- All Implemented Interfaces:
RouteValidationRule
Validates that disallowed types are not used in declarative client methods.
- Since:
- 3.2.0
- Author:
- Sergey Gavrilov, 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
-
ClientTypesRule
public ClientTypesRule()
-
-
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
-