Class DefaultRequestValidator
java.lang.Object
org.apache.camel.component.rest.openapi.validator.DefaultRequestValidator
- All Implemented Interfaces:
RequestValidator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the default operation.voidsetOperation(RestOpenApiOperation operation) Sets the default operation.validate(org.apache.camel.Exchange exchange, RestOpenApiOperation o) Validates theExchangewith the custom operation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.component.rest.openapi.validator.RequestValidator
validate
-
Constructor Details
-
DefaultRequestValidator
public DefaultRequestValidator()
-
-
Method Details
-
setOperation
Description copied from interface:RequestValidatorSets the default operation.- Specified by:
setOperationin interfaceRequestValidator
-
getOperation
Description copied from interface:RequestValidatorGets the default operation.- Specified by:
getOperationin interfaceRequestValidator
-
validate
Description copied from interface:RequestValidatorValidates theExchangewith the custom operation.- Specified by:
validatein interfaceRequestValidator- Parameters:
exchange- the exchangeo- operation to use- Returns:
- null if no validation error, otherwise a set of errors
-