Class GlobalConfig

java.lang.Object
ch.software_atelier.simpleflex.conf.GlobalConfig

public class GlobalConfig extends Object
This Class holds all global configuration values
Author:
tk
  • 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

      public String sslKeyStore()
      returns the path to the keystore for secure connections. For details refere to the manualpages of keytool.
      Returns:
    • setSSLKeyStore

      public void setSSLKeyStore(String sslKeyStore)
      Sets the path to the keystore for secure connections. For details refere to the manualpages of keytool. Default value is null.
      Parameters:
      sslKeyStore -
    • sslKeystorePassword

      public String sslKeystorePassword()
      returns the password for the keystore for secure connections. For details refere to the manualpages of keytool.
      Returns:
    • setSSLKeyStorePassword

      public void setSSLKeyStorePassword(String sslPassword)
      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

      public void setFileInterfaceFile(File interfaceFile)
      Parameters:
      interfaceFile -
    • fileInterfaceFile

      public File fileInterfaceFile()
      Returns: