Class GlobalConfig
java.lang.Object
ch.software_atelier.simpleflex.conf.GlobalConfig
This Class holds all global configuration values
- Author:
- tk
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintport()Returns the port for unsecure connections.voidsetFileInterfaceFile(File interfaceFile) voidsetFileInterfaceInterval(int fileInterfaceInterval) voidsetPort(int port) Sets the port for unsecure connections.voidsetSSLKeyStore(String sslKeyStore) Sets the path to the keystore for secure connections.voidsetSSLKeyStorePassword(String sslPassword) Sets the password for the keystore for secure connections.voidsetSSLPort(int sslPort) Sets the port for secure connections.voidsetUseFileInterface(boolean use) voidsetUseSecurityManager(boolean use) If the builtin SecurityManager has to be used, enable it with true.voidsetUseSSL(boolean useSSL) Activates(true)/deactivates(false) secure connections.returns the path to the keystore for secure connections.returns the password for the keystore for secure connections.intsslPort()returns the port for secure connections.booleanbooleanReturns true, if the builtIn SecuritsManager has to be used.booleanuseSSL()returns true if ssl is activated, else false.
-
Constructor Details
-
GlobalConfig
public GlobalConfig()
-
-
Method Details
-
port
public int port()Returns the port for unsecure connections.- Returns:
-
setPort
public void setPort(int port) Sets the port for unsecure connections. The default value is 80- Parameters:
port-
-
sslPort
public int sslPort()returns the port for secure connections.- Returns:
-
setSSLPort
public void setSSLPort(int sslPort) Sets the port for secure connections. The default value is 443- Parameters:
sslPort-
-
useSSL
public boolean useSSL()returns true if ssl is activated, else false.- Returns:
-
setUseSSL
public void setUseSSL(boolean useSSL) Activates(true)/deactivates(false) secure connections. The default value is false/deactivated- Parameters:
useSSL-
-
sslKeyStore
returns the path to the keystore for secure connections. For details refere to the manualpages of keytool.- Returns:
-
setSSLKeyStore
Sets the path to the keystore for secure connections. For details refere to the manualpages of keytool. Default value is null.- Parameters:
sslKeyStore-
-
sslKeystorePassword
returns the password for the keystore for secure connections. For details refere to the manualpages of keytool.- Returns:
-
setSSLKeyStorePassword
Sets the password for the keystore for secure connections. For details refere to the manualpages of keytool. The default value is null.- Parameters:
sslPassword-
-
setUseSecurityManager
public void setUseSecurityManager(boolean use) If the builtin SecurityManager has to be used, enable it with true.- Parameters:
use-
-
useSecurityManager
public boolean useSecurityManager()Returns true, if the builtIn SecuritsManager has to be used.- Returns:
-
setUseFileInterface
public void setUseFileInterface(boolean use) - Parameters:
use-
-
useFileInterface
public boolean useFileInterface()- Returns:
-
setFileInterfaceInterval
public void setFileInterfaceInterval(int fileInterfaceInterval) - Parameters:
fileInterfaceInterval-
-
fileInterfaceInterval
public int fileInterfaceInterval()- Returns:
-
setFileInterfaceFile
- Parameters:
interfaceFile-
-
fileInterfaceFile
- Returns:
-