A set of components for creating multiplatform automatic JSON-RPC connectivity with a backend server.
open class CallAgent
An agent responsible for remote calls. |
|
data class Credentials
Username and password credentials. |
|
enum class HttpMethod |
|
open class JoobyRemoteAgent<T : Any> : RemoteAgent
Client side agent for JSON-RPC remote calls with Jooby. |
|
open expect class JoobyServiceManager<T : Any> : ServiceManager
Multiplatform service manager for Jooby. |
|
data class JsonRpcRequest |
|
data class JsonRpcResponse |
|
open class KVController |
|
open expect class KVServer
A server. |
|
class LoginService
Pac4j form login dispatcher. |
|
expect class Profile
A user profile. |
|
interface RemoteAgent
Interface for client side agent for JSON-RPC remote calls. |
|
expect interface Request
A server request. |
|
enum class RpcHttpMethod |
|
abstract class SecurityMgr
Pac4j form login dispatcher. |
|
interface ServiceManager |
|
class SpringContext |
|
open class SpringRemoteAgent<T : Any> : RemoteAgent
Client side agent for JSON-RPC remote calls with Spring Boot. |
|
open expect class SpringServiceManager<T : Any> : ServiceManager
Multiplatform service manager for Spring Boot. |
class SecurityException : Exception
A security exception. |
actual typealias Profile = <ERROR CLASS>
A user profile. |
const val HTTP_UNAUTHORIZED: Int
HTTP status unauthorized (401). |
fun <ERROR CLASS>.addPathPatternsFromServices(services: List<SpringServiceManager<*>>): Unit |
|
fun <RESP> Request?.async(block: (Request) -> RESP): Deferred<RESP>
A helper extension function for asynchronous request processing. fun <RESP> async(block: () -> RESP): Deferred<RESP>
A helper extension function for asynchronous processing. |
|
fun <RESP> Request?.asyncAuth(block: (Request, <ERROR CLASS>, Profile) -> RESP): Deferred<RESP>
A helper extension function for asynchronous request processing with session and user profile. fun <RESP> asyncAuth(block: (Profile) -> RESP): Deferred<RESP>
A helper extension function for asynchronous processing with user profile. |
|
fun <RESP> Request?.asyncSession(block: (Request, <ERROR CLASS>) -> RESP): Deferred<RESP>
A helper extension function for asynchronous request processing with session. |
|
fun <ERROR CLASS>.writeJSON(json: String): Unit |