EquinoxBackendConfiguration

The EquinoxBackendConfiguration contains the current configuration used for an Equinox's backend instance. It is based on a singleton design pattern to avoid useless instantiation

Author

N7ghtm4r3 - Tecknobit

Since

1.0.6

Constructors

Link copied to clipboard
private constructor()
Private constructor to instantiate the configuration instance

Types

Link copied to clipboard
The ResourcesConfig represents the configuration used for the static folders of the resources provided by the server
Link copied to clipboard
The ServerProtectorConfig represents the configuration used to configure the serverProtector instance

Properties

Link copied to clipboard
configuration the current configuration of the Equinox's backend instance
Link copied to clipboard
private val EQUINOX_CONFIGURATION_PATHNAME: String = "equinox.config"
EQUINOX_CONFIGURATION_PATHNAME the pathname of the configuration file
Link copied to clipboard
resourcesConfig the configuration of the resources
Link copied to clipboard
serverProtectorConfig the configuration of the server protector

Functions

Link copied to clipboard
private open fun getConfigurationContent(): String
Method used to get the configuration of the backend
Link copied to clipboard
Method used to get the current configuration instance
Link copied to clipboard
private open fun loadResourcesConfig(hConfig: JsonHelper)
Method used to load the resourcesConfig instance
Link copied to clipboard
private open fun loadServerProtectorConfig(hConfig: JsonHelper)
Method used to load the serverProtectorConfig instance
Link copied to clipboard
Method used to check whether the protection by the com.tecknobit.apimanager.apis.ServerProtector is currently enabled
Link copied to clipboard
open fun setServerProtectorEnabled(serverProtectorEnabled: Boolean)
Method used to set the serverProtectorEnabled instance