interface RouterFactory<Specification : Any>
Main interface for Design Driven Router factory Author: Francesco Guardiani @slinkydeveloper
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 getOptions(): RouterFactoryOptions
Get options of router factory. For more info 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 setOptions(options: RouterFactoryOptions): RouterFactory<Any>
Override options |
interface OpenAPI3RouterFactory : RouterFactory<OpenAPI>
Interface for OpenAPI3RouterFactory. To add an handler, use
|