com.huanshankeji.vertx.ext.web.VirtualHostCombinable.kt Maven / Gradle / Ivy
package com.huanshankeji.vertx.ext.web
import io.vertx.core.Verticle
import io.vertx.ext.web.Router
interface VirtualHostCombinable {
fun Router.routesOnVirtualHost()
}
interface SingleVirtualHostVerticle : VirtualHostCombinable, Verticle {
override fun Router.routesOnVirtualHost() {
route().subRouter(subRouter()).virtualHost(virtualHost)
}
val virtualHost: String
fun subRouter(): Router = Router.router(vertx).apply { virtualHostSubRouter() }
fun Router.virtualHostSubRouter()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy