open expect class SpringServiceManager<T : Any> : ServiceManager
Multiplatform service manager for Spring Boot.
SpringServiceManager(serviceClass: KClass<T>)
Multiplatform service manager for Spring Boot. |
val calls: MutableMap<String, Pair<String, RpcHttpMethod>> |
|
var counter: Int |
|
val deleteRequests: MutableMap<String, (Request, <ERROR CLASS>) -> Unit> |
|
val mapper: <ERROR CLASS> |
|
val optionsRequests: MutableMap<String, (Request, <ERROR CLASS>) -> Unit> |
|
val postRequests: MutableMap<String, (Request, <ERROR CLASS>) -> Unit> |
|
val putRequests: MutableMap<String, (Request, <ERROR CLASS>) -> Unit> |
|
val serviceClass: KClass<T> |
fun addRoute(method: RpcHttpMethod, path: String, handler: (Request, <ERROR CLASS>) -> Unit): Unit |
|
fun <RET> bind(function: T.() -> Deferred<RET>, route: String? = null, method: RpcHttpMethod = RpcHttpMethod.POST): Unit fun <PAR, RET> bind(function: T.(PAR) -> Deferred<RET>, route: String? = null, method: RpcHttpMethod = RpcHttpMethod.POST): Unit fun <PAR1, PAR2, RET> bind(function: T.(PAR1, PAR2) -> Deferred<RET>, route: String? = null, method: RpcHttpMethod = RpcHttpMethod.POST): Unit fun <PAR1, PAR2, PAR3, RET> bind(function: T.(PAR1, PAR2, PAR3) -> Deferred<RET>, route: String? = null, method: RpcHttpMethod = RpcHttpMethod.POST): Unit fun <PAR1, PAR2, PAR3, PAR4, RET> bind(function: T.(PAR1, PAR2, PAR3, PAR4) -> Deferred<RET>, route: String? = null, method: RpcHttpMethod = RpcHttpMethod.POST): Unit fun <PAR1, PAR2, PAR3, PAR4, PAR5, RET> bind(function: T.(PAR1, PAR2, PAR3, PAR4, PAR5) -> Deferred<RET>, route: String? = null, method: RpcHttpMethod = RpcHttpMethod.POST): Unit
Binds a given route with a function of the receiver. |
|
open fun getCalls(): Map<String, Pair<String, RpcHttpMethod>>
Returns the map of defined paths. |
|
fun <T> getParameter(str: String?): T |
open fun getCalls(): Map<String, Pair<String, RpcHttpMethod>>
Returns the map of defined paths. |
val LOG: <ERROR CLASS> |