vertx / io.vertx.rxjava.ext.web.api.validation / ValidationHandler

ValidationHandler

interface ValidationHandler : Handler<RoutingContext>

Base interface for validation. For basic HTTP Request Validator, use io.vertx.rxjava.ext.web.api.validation.HTTPRequestValidationHandler NOTE: This class has been automatically generated from the io.vertx.ext.web.api.validation.ValidationHandler non RX-ified interface using Vert.x codegen.

Functions

getDelegate

abstract fun getDelegate(): ValidationHandler

handle

abstract fun handle(arg0: RoutingContext): Unit

newInstance

open static fun newInstance(arg: ValidationHandler): ValidationHandler

Inheritors

HTTPOperationRequestValidationHandler

interface HTTPOperationRequestValidationHandler : ValidationHandler, Handler<RoutingContext>

Base interface for HTTP request validation with API specification NOTE: This class has been automatically generated from the io.vertx.ext.web.api.contract.HTTPOperationRequestValidationHandler non RX-ified interface using Vert.x codegen.

HTTPRequestValidationHandler

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:

  • application/x-www-form-urlencoded
  • multipart/form-data
  • application/xml
  • application/json
Also you can add a form parameter for validation without care about content type of your request. For form parameters this interface support both "multipart/form-data" and "application/x-www-form-urlencoded" This interface allow extra parameters in the request, so it doesn't care if in a request there's a parameter without a specified validation rule If a parameter is flagged as an array, it will be validated also if the size of array is 1 element NOTE: This class has been automatically generated from the io.vertx.ext.web.api.validation.HTTPRequestValidationHandler non RX-ified interface using Vert.x codegen.