kvision / pl.treksoft.kvision.remote

Package pl.treksoft.kvision.remote

A set of components for creating multiplatform automatic JSON-RPC connectivity with a backend server.

Types

CallAgent

open class CallAgent

An agent responsible for remote calls.

Credentials

data class Credentials

Username and password credentials.

KVController

open class KVController

KVRemoteAgent

open class KVRemoteAgent<T : Any> : RemoteAgent

Client side agent for JSON-RPC remote calls.

KVServer

open actual class KVServer

A server. Not used on the js platform.

KVServiceManager

open actual class KVServiceManager<T : Any>

Multiplatform service manager.

LoginService

class LoginService

Pac4j form login dispatcher.

Profile

data actual class Profile

A user profile.

RemoteAgent

interface RemoteAgent

Interface for client side agent for JSON-RPC remote calls.

Request

actual interface Request

A server request. Not used on the js platform.

SecurityMgr

abstract class SecurityMgr

Pac4j form login dispatcher.

SpringContext

class SpringContext

Exceptions

SecurityException

class SecurityException : Exception

A security exception.

Type Aliases

Profile

actual typealias Profile = <ERROR CLASS>

A user profile.

Properties

HTTP_UNAUTHORIZED

const val HTTP_UNAUTHORIZED: Int

HTTP status unauthorized (401).

Functions

addPathPatternsFromServices

fun <ERROR CLASS>.addPathPatternsFromServices(services: List<KVServiceManager<*>>): Unit

withProfile

fun <RESP> Request.withProfile(block: (Profile) -> RESP): RESP
fun <RESP> withProfile(block: (Profile) -> RESP): RESP

A helper extension function for processing with authenticated user profile.

writeJSON

fun <ERROR CLASS>.writeJSON(json: String): Unit