public abstract class BaseValidationHandler extends Object implements ValidationHandler
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
bodyRequired |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseValidationHandler() |
public void handle(RoutingContext routingContext)
Handlerhandle in interface Handler<RoutingContext>routingContext - the event to handleprotected void addRule(ParameterValidationRule rule, ParameterLocation location)
protected void addPathParamRule(ParameterValidationRule rule)
protected void addCookieParamRule(ParameterValidationRule rule)
protected void addQueryParamRule(ParameterValidationRule rule)
protected void addFormParamRule(ParameterValidationRule rule)
protected void addHeaderParamRule(ParameterValidationRule rule)
protected void addCustomValidator(CustomValidator customValidator)
protected void addBodyFileRule(String contentType)
protected void setEntireBodyValidator(ParameterTypeValidator entireBodyValidator)
protected void setCookieAdditionalPropertyHandler(ParameterTypeValidator validator, String objectParameterName)
protected void setQueryAdditionalPropertyHandler(ParameterTypeValidator validator, String objectParameterName)
public boolean isBodyRequired()
Copyright © 2020. All rights reserved.