open class HTTPRequestValidationHandler : ValidationHandler, Handler<RoutingContext>
An interface for add HTTP Request validation. This class can validate parameters inside query, path, headers an body (watch below) You can assign multiple body type at the same time(for example a JSON schema together with a XML schema). This interface support:
HTTPRequestValidationHandler(delegate: HTTPRequestValidationHandler) |
static val __TYPE_ARG: TypeArg<HTTPRequestValidationHandler> |
open fun addCustomValidatorFunction(customValidator: CustomValidator): HTTPRequestValidationHandler
Add a custom validator. For more informations about custom validator, see io.vertx.reactivex.ext.web.api.validation.CustomValidator |
|
open fun addExpectedContentType(contentType: String): HTTPRequestValidationHandler
Add an expected content type of request. It's not needed to add application/json, application/xml, multipart/form-data and application/x-www-form-urlencoded |
|
open fun addFormParam(parameterName: String, type: ParameterType, required: Boolean): HTTPRequestValidationHandler
Add a single parameter inside a form with included parameter types |
|
open fun addFormParamWithCustomTypeValidator(parameterName: String, validator: ParameterTypeValidator, required: Boolean, allowEmptyValue: Boolean): HTTPRequestValidationHandler
Add a form parameter with a custom type validator. For more informations about how to construct built-in or custom type validator, check out io.vertx.reactivex.ext.web.api.validation.ParameterTypeValidator |
|
open fun addFormParamWithPattern(parameterName: String, pattern: String, required: Boolean): HTTPRequestValidationHandler
Add a single parameter inside a form with a custom pattern |
|
open fun addFormParamsArray(parameterName: String, type: ParameterType, required: Boolean): HTTPRequestValidationHandler
Add a form parameters array with included parameter types |
|
open fun addFormParamsArrayWithPattern(parameterName: String, pattern: String, required: Boolean): HTTPRequestValidationHandler
Add a form parameters array with a custom pattern |
|
open fun addHeaderParam(headerName: String, type: ParameterType, required: Boolean): HTTPRequestValidationHandler
Add a header parameter with included parameter types |
|
open fun addHeaderParamWithCustomTypeValidator(headerName: String, validator: ParameterTypeValidator, required: Boolean, allowEmptyValue: Boolean): HTTPRequestValidationHandler
Add a header parameter with a custom type validator. For more informations about how to construct built-in or custom type validator, check out io.vertx.reactivex.ext.web.api.validation.ParameterTypeValidator |
|
open fun addHeaderParamWithPattern(headerName: String, pattern: String, required: Boolean): HTTPRequestValidationHandler
Add a header parameter with a custom pattern |
|
open fun addJsonBodySchema(jsonSchema: String): HTTPRequestValidationHandler
Add a json schema for body with Content-Type "application/json" |
|
open fun addMultipartRequiredFile(filename: String, contentType: String): HTTPRequestValidationHandler
Add an expected filename inside multipart request. |
|
open fun addPathParam(parameterName: String, type: ParameterType): HTTPRequestValidationHandler
Add a path parameter with included parameter types. All path params are required |
|
open fun addPathParamWithCustomTypeValidator(parameterName: String, validator: ParameterTypeValidator, allowEmptyValue: Boolean): HTTPRequestValidationHandler
Add a path parameter with a custom type validator. All path params are required. For more informations about how to construct built-in or custom type validator, check out io.vertx.reactivex.ext.web.api.validation.ParameterTypeValidator |
|
open fun addPathParamWithPattern(parameterName: String, pattern: String): HTTPRequestValidationHandler
Add a path parameter with a custom pattern. All path params are required |
|
open fun addQueryParam(parameterName: String, type: ParameterType, required: Boolean): HTTPRequestValidationHandler
Add a query parameter with included parameter types |
|
open fun addQueryParamWithCustomTypeValidator(parameterName: String, validator: ParameterTypeValidator, required: Boolean, allowEmptyValue: Boolean): HTTPRequestValidationHandler
Add a query parameter with a custom type validator. For more informations about how to construct built-in or custom type validator, check out io.vertx.reactivex.ext.web.api.validation.ParameterTypeValidator |
|
open fun addQueryParamWithPattern(parameterName: String, pattern: String, required: Boolean): HTTPRequestValidationHandler
Add a query parameter with a custom pattern |
|
open fun addQueryParamsArray(arrayName: String, type: ParameterType, required: Boolean): HTTPRequestValidationHandler
Add a query parameters array with included parameter types |
|
open fun addQueryParamsArrayWithPattern(arrayName: String, pattern: String, required: Boolean): HTTPRequestValidationHandler
Add a query parameters array with a custom pattern |
|
open fun addXMLBodySchema(xmlSchema: String): HTTPRequestValidationHandler
Add a xml schema for body with Content-Type "application/xml" |
|
open static fun create(): HTTPRequestValidationHandler
Factory method to create an HTTPRequestValidationHandler |
|
open fun equals(other: Any?): Boolean |
|
open fun getDelegate(): HTTPRequestValidationHandler |
|
open fun handle(arg0: RoutingContext): Unit |
|
open fun hashCode(): Int |
|
open static fun newInstance(arg: HTTPRequestValidationHandler): HTTPRequestValidationHandler |
|
open fun toString(): String |