All Downloads are FREE. Search and download functionalities are using the official Maven repository.

run.smt.ktest.rest.authorization.AuthorizationAdapter.kt Maven / Gradle / Ivy

package run.smt.ktest.rest.authorization

import com.typesafe.config.Config
import run.smt.ktest.rest.api.RequestBuilder
import run.smt.ktest.rest.api.RequestElement
import run.smt.ktest.rest.impl.getLogger as _getLogger

interface AuthorizationAdapter {
    /**
     * Guarantied to be called only once per instance
     */
    fun setup(config: Config)
    fun RequestBuilder.enrichRequest(request: Sequence) : Sequence
}

fun AuthorizationAdapter.getRestLogger(config: Config) = _getLogger(config)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy