org.http4k.server.Http4kWsRouting.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http4k-server-helidon Show documentation
Show all versions of http4k-server-helidon Show documentation
Http4k HTTP Server built on top of Helidon Nima
The newest version!
package org.http4k.server
import io.helidon.webserver.Routing
import io.helidon.webserver.websocket.WsRoute
import io.helidon.webserver.websocket.WsRouting
import org.http4k.websocket.WsHandler
class Http4kWsRouting(private val ws: WsHandler) : Routing {
override fun routingType() = WsRouting::class.java
class Builder(ws: WsHandler) : io.helidon.common.Builder {
override fun build(): WsRouting {
val builder: WsRouting.Builder = WsRouting.builder()
val method = builder::class.java.getDeclaredMethod("route", WsRoute::class.java)
method.isAccessible = true
return builder.build()
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy