All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.http4k.server.Http4kWsRouting.kt Maven / Gradle / Ivy

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