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

com.jdroid.java.http.DefaultServer.kt Maven / Gradle / Ivy

package com.jdroid.java.http

class DefaultServer(private val name: String, private val baseUrl: String, private val supportsSsl: Boolean) : Server {

    constructor(baseUrl: String) : this(DefaultServer::class.java.simpleName, baseUrl, true) {}

    override fun getServerName(): String {
        return name
    }

    override fun getBaseUrl(): String {
        return baseUrl
    }

    override fun supportsSsl(): Boolean {
        return supportsSsl
    }

    override fun isProduction(): Boolean {
        return true
    }

    override fun getHttpServiceProcessors(): List? {
        return listOf(BasicHttpResponseValidator())
    }

    override fun instance(name: String): Server? {
        return null
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy