Interface DesktopConfig


public interface DesktopConfig
Configuration parameters of the Desktop.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    getBoolean(String key, boolean defval)
    Returns the boolean value of a parameter or defval if not found.
    int
    getInteger(String key, int defval)
    Returns the integer value of a parameter or defval if not found.
    long
    getLong(String key, long defval)
    Returns the long value of a parameter or defval if not found.
    Returns the object value of a parameter or null if not found.
    Returns a new SSLContext with optional "Trust All Certs" option.
    Returns the string value of a parameter or null if not found.
    getString(String key, String defval)
    Returns the string value of a parameter or defval if not found.
    boolean
    Returns true if backend server is Microsoft IIS.
    boolean
    Returns true if unsecure SSL communication is enabled.
  • Method Details

    • isIIS

      boolean isIIS()
      Returns true if backend server is Microsoft IIS.
      Returns:
      true if backend server is Microsoft IIS.
    • isUnsecureEnabled

      boolean isUnsecureEnabled()
      Returns true if unsecure SSL communication is enabled.
      Returns:
      true if unsecure SSL communication is enabled.
    • getSSLContext

      SSLContext getSSLContext()
      Returns a new SSLContext with optional "Trust All Certs" option.
      Returns:
      a new SSLContext with optional "Trust All Certs" option.
    • getObject

      Object getObject(String key)
      Returns the object value of a parameter or null if not found.
      Parameters:
      key - the name of the parameter.
      Returns:
      the object value or null if not found.
      Throws:
      NullPointerException - if key is null.
      IllegalArgumentException - if key is empty.
    • getString

      String getString(String key)
      Returns the string value of a parameter or null if not found.
      Parameters:
      key - the name of the parameter.
      Returns:
      the string value or null if not found.
      Throws:
      NullPointerException - if key is null.
      IllegalArgumentException - if key is empty.
    • getString

      String getString(String key, String defval)
      Returns the string value of a parameter or defval if not found.
      Parameters:
      key - the name of the parameter.
      defval - a default value for the parameter.
      Returns:
      the string value or defval if not found.
      Throws:
      NullPointerException - if key is null.
      IllegalArgumentException - if key is empty.
    • getInteger

      int getInteger(String key, int defval)
      Returns the integer value of a parameter or defval if not found.
      Parameters:
      key - the name of the parameter.
      defval - a default value for the parameter.
      Returns:
      the integer value or defval if not found.
      Throws:
      NullPointerException - if key is null.
      IllegalArgumentException - if key is empty.
    • getLong

      long getLong(String key, long defval)
      Returns the long value of a parameter or defval if not found.
      Parameters:
      key - the name of the parameter.
      defval - a default value for the parameter.
      Returns:
      the long value or defval if not found.
      Throws:
      NullPointerException - if key is null.
      IllegalArgumentException - if key is empty.
    • getBoolean

      boolean getBoolean(String key, boolean defval)
      Returns the boolean value of a parameter or defval if not found.
      Parameters:
      key - the name of the parameter.
      defval - a default value for the parameter.
      Returns:
      the boolean value or defval if not found.
      Throws:
      NullPointerException - if key is null.
      IllegalArgumentException - if key is empty.