Package cl.obcom.desktopfx.core
Interface DesktopConfig
public interface DesktopConfig
Configuration parameters of the
Desktop
.-
Method Summary
Modifier and TypeMethodDescriptionboolean
getBoolean
(String key, boolean defval) Returns the boolean value of a parameter ordefval
if not found.int
getInteger
(String key, int defval) Returns the integer value of a parameter ordefval
if not found.long
Returns the long value of a parameter ordefval
if not found.Returns the object value of a parameter ornull
if not found.Returns a new SSLContext with optional "Trust All Certs" option.Returns the string value of a parameter ornull
if not found.Returns the string value of a parameter ordefval
if not found.boolean
isIIS()
Returnstrue
if backend server is Microsoft IIS.boolean
Returnstrue
if unsecure SSL communication is enabled.
-
Method Details
-
isIIS
boolean isIIS()Returnstrue
if backend server is Microsoft IIS.- Returns:
true
if backend server is Microsoft IIS.
-
isUnsecureEnabled
boolean isUnsecureEnabled()Returnstrue
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
Returns the object value of a parameter ornull
if not found.- Parameters:
key
- the name of the parameter.- Returns:
- the object value or
null
if not found. - Throws:
NullPointerException
- ifkey
isnull
.IllegalArgumentException
- ifkey
is empty.
-
getString
Returns the string value of a parameter ornull
if not found.- Parameters:
key
- the name of the parameter.- Returns:
- the string value or
null
if not found. - Throws:
NullPointerException
- ifkey
isnull
.IllegalArgumentException
- ifkey
is empty.
-
getString
Returns the string value of a parameter ordefval
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
- ifkey
isnull
.IllegalArgumentException
- ifkey
is empty.
-
getInteger
Returns the integer value of a parameter ordefval
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
- ifkey
isnull
.IllegalArgumentException
- ifkey
is empty.
-
getLong
Returns the long value of a parameter ordefval
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
- ifkey
isnull
.IllegalArgumentException
- ifkey
is empty.
-
getBoolean
Returns the boolean value of a parameter ordefval
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
- ifkey
isnull
.IllegalArgumentException
- ifkey
is empty.
-