data class WebContext<R, G : TxProvider<R, G>> : TxProvider<R, WebContext<R, G>>, SecurityProvider<User, UserRole>, ExecutionContextProvider, TraceProvider<WebContext<R, G>>, TimeProvider, Logging
<init> |
WebContext(jdbcProvider: TxProvider<R, G>, securityProvider: SecurityProvider<User, UserRole>, executionContextProvider: ExecutionContextProvider, errorHandler: ErrorHandler = DefaultErrorHandler, contextProvider: WebContextProvider<R, G>, traceProvider: TraceProvider<*>, timeProvider: TimeProvider, applicationCall: ApplicationCall) |
getConnection |
fun getConnection(): TxConnection<R> |
getTrace |
fun getTrace(): TraceResource |
serveMessage |
suspend fun <E, A> serveMessage(msg: Out<E, A>): Unitsuspend fun serveMessage(businessFunction: ANee<WebContext<R, G>, Any>): Unit |
serveText |
fun serveText(businessFunction: ANee<WebContext<R, G>, String>): Unit |
setConnectionState |
fun setConnectionState(newState: TxConnection<R>): WebContext<R, G> |
setTrace |
fun setTrace(newState: TraceResource): WebContext<R, G> |