public class HTTPRequestValidationHandler extends Object implements ValidationHandler, Handler<RoutingContext>
original non RX-ified interface using Vert.x codegen.| Modifier and Type | Field and Description |
|---|---|
static io.vertx.lang.rx.TypeArg<HTTPRequestValidationHandler> |
__TYPE_ARG |
| Constructor and Description |
|---|
HTTPRequestValidationHandler(HTTPRequestValidationHandler delegate) |
HTTPRequestValidationHandler(Object delegate) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitnewInstancepublic static final io.vertx.lang.rx.TypeArg<HTTPRequestValidationHandler> __TYPE_ARG
public HTTPRequestValidationHandler(HTTPRequestValidationHandler delegate)
public HTTPRequestValidationHandler(Object delegate)
public HTTPRequestValidationHandler getDelegate()
getDelegate in interface ValidationHandler@Deprecated public void handle(RoutingContext event)
handle in interface Handler<RoutingContext>handle in interface ValidationHandlerevent - the event to handle@Deprecated public static HTTPRequestValidationHandler create()
@Deprecated public HTTPRequestValidationHandler addPathParam(String parameterName, ParameterType type)
parameterName - expected name of parameter inside the pathtype - expected type of parameter@Deprecated public HTTPRequestValidationHandler addPathParamWithPattern(String parameterName, String pattern)
parameterName - expected name of parameter inside the pathpattern - regular expression for validation@Deprecated public HTTPRequestValidationHandler addPathParamWithCustomTypeValidator(String parameterName, ParameterTypeValidator validator, boolean allowEmptyValue)
ParameterTypeValidatorparameterName - expected name of parameter inside the pathvalidator - type validatorallowEmptyValue - true if parameter allowEmptyValue. For more informations about allowEmptyValue behaviour: ParameterValidationRule.allowEmptyValue()@Deprecated public HTTPRequestValidationHandler addQueryParam(String parameterName, ParameterType type, boolean required)
parameterName - expected name of parameter inside the querytype - expected type of parameterrequired - true if parameter is required@Deprecated public HTTPRequestValidationHandler addQueryParamWithPattern(String parameterName, String pattern, boolean required)
parameterName - expected name of parameter inside the querypattern - regular expression for validationrequired - true if parameter is required@Deprecated public HTTPRequestValidationHandler addQueryParamsArray(String arrayName, ParameterType type, boolean required)
arrayName - expected name of array inside the querytype - expected type of parameterrequired - true if parameter is required@Deprecated public HTTPRequestValidationHandler addQueryParamsArrayWithPattern(String arrayName, String pattern, boolean required)
arrayName - expected name of array inside the querypattern - regular expression for validationrequired - true if parameter is required@Deprecated public HTTPRequestValidationHandler addQueryParamWithCustomTypeValidator(String parameterName, ParameterTypeValidator validator, boolean required, boolean allowEmptyValue)
ParameterTypeValidatorparameterName - expected name of parameter inside the queryvalidator - type validatorrequired - true if parameter is requiredallowEmptyValue - true if parameter allowEmptyValue. For more informations about allowEmptyValue behaviour: ParameterValidationRule.allowEmptyValue()@Deprecated public HTTPRequestValidationHandler addHeaderParam(String headerName, ParameterType type, boolean required)
headerName - expected header nametype - expected type of parameterrequired - true if parameter is required@Deprecated public HTTPRequestValidationHandler addHeaderParamWithPattern(String headerName, String pattern, boolean required)
headerName - expected header namepattern - regular expression for validationrequired - true if parameter is required@Deprecated public HTTPRequestValidationHandler addHeaderParamWithCustomTypeValidator(String headerName, ParameterTypeValidator validator, boolean required, boolean allowEmptyValue)
ParameterTypeValidatorheaderName - expected header nameryvalidator - type validatorrequired - true if parameter is requiredallowEmptyValue - true if parameter allowEmptyValue. For more informations about allowEmptyValue behaviour: ParameterValidationRule.allowEmptyValue()@Deprecated public HTTPRequestValidationHandler addFormParam(String parameterName, ParameterType type, boolean required)
parameterName - expected name of parameter inside the formtype - expected type of parameterrequired - true if parameter is required@Deprecated public HTTPRequestValidationHandler addFormParamWithPattern(String parameterName, String pattern, boolean required)
parameterName - expected name of parameter inside the formpattern - regular expression for validationrequired - true if parameter is required@Deprecated public HTTPRequestValidationHandler addFormParamsArray(String parameterName, ParameterType type, boolean required)
parameterName - expected name of array of parameters inside the formtype - expected type of array of parametersrequired - true if parameter is required@Deprecated public HTTPRequestValidationHandler addFormParamsArrayWithPattern(String parameterName, String pattern, boolean required)
parameterName - expected name of array of parameters inside the formpattern - regular expression for validationrequired - true if parameter is required@Deprecated public HTTPRequestValidationHandler addFormParamWithCustomTypeValidator(String parameterName, ParameterTypeValidator validator, boolean required, boolean allowEmptyValue)
ParameterTypeValidatorparameterName - expected name of parameter inside the formvalidator - type validatorrequired - true if parameter is requiredallowEmptyValue - true if parameter allowEmptyValue. For more informations about allowEmptyValue behaviour: ParameterValidationRule.allowEmptyValue()@Deprecated public HTTPRequestValidationHandler addCustomValidatorFunction(CustomValidator customValidator)
CustomValidatorcustomValidator - @Deprecated public HTTPRequestValidationHandler addJsonBodySchema(String jsonSchema)
jsonSchema - @Deprecated public HTTPRequestValidationHandler addXMLBodySchema(String xmlSchema)
xmlSchema - @Deprecated public HTTPRequestValidationHandler addMultipartRequiredFile(String filename, String contentType)
filename - name of the file inside the formcontentType - expected content type of file@Deprecated public HTTPRequestValidationHandler addExpectedContentType(String contentType)
contentType - expected content type of filepublic static HTTPRequestValidationHandler newInstance(HTTPRequestValidationHandler arg)
Copyright © 2021 Eclipse. All rights reserved.