Package io. kvision. remote
A set of components for creating multiplatform automatic JSON-RPC connectivity with a backend server.
Types
KVHandler
Link copied to clipboard
@Component
Content copied to clipboard
Default Spring Boot handler
KVRouter Configuration
Link copied to clipboard
Default Spring Boot routes
KVService Manager
Link copied to clipboard
Multiplatform service manager.
open class KVServiceManager<T : Any>(serviceClass: KClass<T>) : KVServiceBinder<T, RequestHandler, WebsocketHandler> , KVServiceMgr<T>
Content copied to clipboard
Multiplatform service manager for Spring Boot.
KVWeb Socket Config
Link copied to clipboard
@Configuration
Content copied to clipboard
Spring Boot WebSocket configuration
KVWeb Socket Handler
Link copied to clipboard
class KVWebSocketHandler(services: List<KVServiceManager<*>>, threadLocalWebSocketSession: ThreadLocal<WebSocketSession>, applicationContext: ApplicationContext) : WebSocketHandler, CoroutineScope
Content copied to clipboard
Spring Boot WebSocket handler
Persistence Constructor
Link copied to clipboard
annotation class PersistenceConstructor
Content copied to clipboard
Request Handler
Link copied to clipboard
typealias RequestHandler = suspend (ServerRequest, ThreadLocal<ServerRequest>, ApplicationContext) -> ServerResponse
Content copied to clipboard
Websocket Handler
Link copied to clipboard
typealias WebsocketHandler = suspend (WebSocketSession, ThreadLocal<WebSocketSession>, ApplicationContext, ReceiveChannel<String>, SendChannel<String>) -> Unit
Content copied to clipboard
Functions
get Server Web Exchange Matcher
Link copied to clipboard
fun getServerWebExchangeMatcher(vararg services: KVServiceManager<*>): Array<ServerWebExchangeMatcher>
Content copied to clipboard
A function to gather paths for spring security matchers.
service Matchers
Link copied to clipboard
fun serviceMatchers(vararg services: KVServiceManager<*>): ServerWebExchangeMatcher
Content copied to clipboard
fun ServerHttpSecurity.AuthorizeExchangeSpec.serviceMatchers(vararg services: KVServiceManager<*>): ServerHttpSecurity.AuthorizeExchangeSpec.Access
Content copied to clipboard
A function to gather paths for spring security matchers.