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

io.github.kryszak.gwatlin.http.config.HttpConfig.kt Maven / Gradle / Ivy

The newest version!
package io.github.kryszak.gwatlin.http.config

import java.util.*

internal class HttpConfig {

    private val configFileName = "config.properties"

    private val baseUrlProperty = "url"

    private val properties: Properties = Properties()

    val baseUrl: String

    init {
        loadProperties()
        this.baseUrl = properties.getProperty(baseUrlProperty)
    }

    private fun loadProperties() {
        properties.load(this.javaClass.classLoader.getResourceAsStream(configFileName))
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy