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

com.infobip.kafkistry.webapp.url.MainUrls.kt Maven / Gradle / Ivy

There is a newer version: 0.8.0
Show newest version
package com.infobip.kafkistry.webapp.url

class MainUrls(base: String): BaseUrls() {

    companion object {
        const val HOME = "/home"
        const val PENDING_REQUESTS = "/home/pending-requests"
        const val CLUSTER_STATS = "/home/clusters-stats"
        const val TAGS_STATS = "/home/tags-stats"
        const val TOPIC_STATS = "/home/topics-stats"
        const val CONSUMER_GROUPS_STATS = "/home/consumer-groups-stats"
        const val ACLS_STATS = "/home/acls-stats"
        const val QUOTAS_STATS = "/home/quotas-stats"
    }

    private val url = Url("$base$HOME")

    private val showPendingRequests = Url("$base$PENDING_REQUESTS")

    private val showClustersStats = Url("$base$CLUSTER_STATS")
    private val showTagsStats = Url("$base$TAGS_STATS")
    private val showTopicsStats = Url("$base$TOPIC_STATS")
    private val showConsumerGroupsStats = Url("$base$CONSUMER_GROUPS_STATS")
    private val showAclsStats = Url("$base$ACLS_STATS")
    private val showQuotasStats = Url("$base$QUOTAS_STATS")

    fun url() = url.render()

    fun showPendingRequests() = showPendingRequests.render()

    fun showClustersStats() = showClustersStats.render()
    fun showTagsStats() = showTagsStats.render()
    fun showTopicsStats() = showTopicsStats.render()
    fun showConsumerGroupsStats() = showConsumerGroupsStats.render()
    fun showAclsStats() = showAclsStats.render()
    fun showQuotasStats() = showQuotasStats.render()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy