interface RouterFactory<Specification : Any>
Main interface for Design Driven Router factory Author: Francesco Guardiani @slinkydeveloper NOTE: This class has been automatically generated from the io.vertx.ext.web.api.contract.RouterFactory non RX-ified interface using Vert.x codegen.
abstract fun addFailureHandler(method: HttpMethod, path: String, failureHandler: Handler<RoutingContext>): RouterFactory<Any>
Add a failure handler to a path with a method. If combination path/method is not available in specification, it will throw a io.vertx.reactivex.ext.web.api.contract.RouterFactoryException. Deprecated in favour of operation id |
|
abstract fun addHandler(method: HttpMethod, path: String, handler: Handler<RoutingContext>): RouterFactory<Any>
Add an handler to a path with a method. If combination path/method is not available in specification, it will throw a io.vertx.reactivex.ext.web.api.contract.RouterFactoryException. Deprecated in favour of operation id |
|
abstract fun addSecurityHandler(securitySchemaName: String, handler: Handler<RoutingContext>): RouterFactory<Any>
Mount to paths that have to follow a security schema a security handler |
|
abstract fun enableValidationFailureHandler(enable: Boolean): RouterFactory<Any>
Deprecated. Instantiate io.vertx.ext.web.api.contract.RouterFactoryOptions and load it using |
|
abstract fun getDelegate(): RouterFactory<Any> |
|
abstract fun getOptions(): RouterFactoryOptions
Get options of router factory. For more info io.vertx.ext.web.api.contract.RouterFactoryOptions |
|
abstract fun getRouter(): Router
Construct a new router based on spec. It will fail if you are trying to mount a spec with security schemes without assigned handlers Note: Router is constructed in this function, so it will be respected the path definition ordering. |
|
abstract fun mountOperationsWithoutHandlers(enable: Boolean): RouterFactory<Any>
Deprecated. Instantiate io.vertx.ext.web.api.contract.RouterFactoryOptions and load it using |
|
open static fun <Specification : Any> newInstance(arg: RouterFactory<Any>): RouterFactory<Specification>open static fun <Specification : Any> newInstance(arg: RouterFactory<Any>, __typeArg_Specification: TypeArg<Specification>): RouterFactory<Specification> |
|
abstract fun setOptions(options: RouterFactoryOptions): RouterFactory<Any>
Override options |
|
abstract fun setValidationFailureHandler(handler: Handler<RoutingContext>): RouterFactory<Any>
Deprecated. Instantiate io.vertx.ext.web.api.contract.RouterFactoryOptions and load it using |
open class OpenAPI3RouterFactory : RouterFactory<OpenAPI>
Interface for OpenAPI3RouterFactory. To add an handler, use NOTE: This class has been automatically generated from the io.vertx.ext.web.api.contract.openapi3.OpenAPI3RouterFactory non RX-ified interface using Vert.x codegen.
|