Interface DesktopConfig
public interface DesktopConfig
Configuration parameters of the
Desktop.-
Method Summary
Modifier and TypeMethodDescriptionbooleangetBoolean(String key, boolean defval) Returns the boolean value of a parameter ordefvalif not found.intgetInteger(String key, int defval) Returns the integer value of a parameter ordefvalif not found.longReturns the long value of a parameter ordefvalif not found.Returns the object value of a parameter ornullif not found.Returns a new SSLContext with optional "Trust All Certs" option.Returns the string value of a parameter ornullif not found.Returns the string value of a parameter ordefvalif not found.booleanisIIS()Returnstrueif backend server is Microsoft IIS.booleanReturnstrueif unsecure SSL communication is enabled.
-
Method Details
-
isIIS
boolean isIIS()Returnstrueif backend server is Microsoft IIS.- Returns:
trueif backend server is Microsoft IIS.
-
isUnsecureEnabled
boolean isUnsecureEnabled()Returnstrueif unsecure SSL communication is enabled.- Returns:
trueif 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
Returns the object value of a parameter ornullif not found.- Parameters:
key- the name of the parameter.- Returns:
- the object value or
nullif not found. - Throws:
NullPointerException- ifkeyisnull.IllegalArgumentException- ifkeyis empty.
-
getString
Returns the string value of a parameter ornullif not found.- Parameters:
key- the name of the parameter.- Returns:
- the string value or
nullif not found. - Throws:
NullPointerException- ifkeyisnull.IllegalArgumentException- ifkeyis empty.
-
getString
Returns the string value of a parameter ordefvalif not found.- Parameters:
key- the name of the parameter.defval- a default value for the parameter.- Returns:
- the string value or
defvalif not found. - Throws:
NullPointerException- ifkeyisnull.IllegalArgumentException- ifkeyis empty.
-
getInteger
Returns the integer value of a parameter ordefvalif not found.- Parameters:
key- the name of the parameter.defval- a default value for the parameter.- Returns:
- the integer value or
defvalif not found. - Throws:
NullPointerException- ifkeyisnull.IllegalArgumentException- ifkeyis empty.
-
getLong
Returns the long value of a parameter ordefvalif not found.- Parameters:
key- the name of the parameter.defval- a default value for the parameter.- Returns:
- the long value or
defvalif not found. - Throws:
NullPointerException- ifkeyisnull.IllegalArgumentException- ifkeyis empty.
-
getBoolean
Returns the boolean value of a parameter ordefvalif not found.- Parameters:
key- the name of the parameter.defval- a default value for the parameter.- Returns:
- the boolean value or
defvalif not found. - Throws:
NullPointerException- ifkeyisnull.IllegalArgumentException- ifkeyis empty.
-