Package net.sourceforge.jnlp.config
Class DeploymentConfiguration
java.lang.Object
net.sourceforge.jnlp.config.DeploymentConfiguration
Manages the various properties and configuration related to deployment.
See:
http://download.oracle.com/javase/1.5.0/docs/guide/deployment/deployment-guide/properties.html
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
when set to as value of KEY_CONSOLE_STARTUP_MODE = "deployment.console.startup.mode", then console is not visible by default, nop data are passed to it (save memory and cpu) but can not be shownstatic final String
when set to as value of KEY_CONSOLE_STARTUP_MODE = "deployment.console.startup.mode", then console is not visible by default, but may be shownstatic final String
when set to as value of KEY_CONSOLE_STARTUP_MODE = "deployment.console.startup.mode", then console show for both javaws and pluginstatic final String
when set to as value of KEY_CONSOLE_STARTUP_MODE = "deployment.console.startup.mode", then console show for javawsstatic final String
when set to as value of KEY_CONSOLE_STARTUP_MODE = "deployment.console.startup.mode", then console show for pluginstatic final String
static final String
static final String
static final String
static final String
static final int
static final int
static final int
static final int
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Console initial status.static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Boolean.static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Boolean.static final String
static final String
static final String
the proxy type.static final String
Boolean.static final String
Boolean.static final String
Boolean.static final String
static final String
Boolean.static final String
Boolean.static final String
static final String
static final String
Possibility to control hack which resizes very small appletsstatic final String
static final String
static final String
static final String
remote configuration propertiesstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
the directory containing locks for single instance applicationsstatic final String
static final String
The netx_running file is used to indicate if any instances of netx are running (this file may exist even if no instances are running).static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final SimpleDateFormat
static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkAndFixConfiguration
(Map<String, Setting<String>> initial) Check that the configuration is valid.void
copyTo
(Properties target) Copies the current configuration into the targetgetProperty
(String key) Get the value for the given keygetRaw()
void
load()
Initialize this deployment configuration by reading configuration files.void
load
(boolean fixIssues) Initialize this deployment configuration by reading configuration files.static void
void
void
save()
Saves all properties that are not part of default or system propertiesvoid
void
setProperty
(String key, String value) Sets the value of corresponding to the key.
-
Field Details
-
DEPLOYMENT_CONFIG_FILE
- See Also:
-
DEPLOYMENT_PROPERTIES
- See Also:
-
APPLET_TRUST_SETTINGS
- See Also:
-
DEPLOYMENT_COMMENT
- See Also:
-
userComments
-
systemComments
-
JNLP_ASSOCIATION_NEVER
public static final int JNLP_ASSOCIATION_NEVER- See Also:
-
JNLP_ASSOCIATION_NEW_ONLY
public static final int JNLP_ASSOCIATION_NEW_ONLY- See Also:
-
JNLP_ASSOCIATION_ASK_USER
public static final int JNLP_ASSOCIATION_ASK_USER- See Also:
-
JNLP_ASSOCIATION_REPLACE_ASK
public static final int JNLP_ASSOCIATION_REPLACE_ASK- See Also:
-
CONSOLE_HIDE
when set to as value of KEY_CONSOLE_STARTUP_MODE = "deployment.console.startup.mode", then console is not visible by default, but may be shown- See Also:
-
CONSOLE_SHOW
when set to as value of KEY_CONSOLE_STARTUP_MODE = "deployment.console.startup.mode", then console show for both javaws and plugin- See Also:
-
CONSOLE_DISABLE
when set to as value of KEY_CONSOLE_STARTUP_MODE = "deployment.console.startup.mode", then console is not visible by default, nop data are passed to it (save memory and cpu) but can not be shown- See Also:
-
CONSOLE_SHOW_PLUGIN
when set to as value of KEY_CONSOLE_STARTUP_MODE = "deployment.console.startup.mode", then console show for plugin- See Also:
-
CONSOLE_SHOW_JAVAWS
when set to as value of KEY_CONSOLE_STARTUP_MODE = "deployment.console.startup.mode", then console show for javaws- See Also:
-
KEY_USER_CACHE_DIR
- See Also:
-
KEY_USER_PERSISTENCE_CACHE_DIR
- See Also:
-
KEY_SYSTEM_CACHE_DIR
- See Also:
-
KEY_CACHE_MAX_SIZE
- See Also:
-
KEY_CACHE_ENABLED
- See Also:
-
KEY_CACHE_COMPRESSION_ENABLED
- See Also:
-
KEY_USER_LOG_DIR
- See Also:
-
KEY_USER_TMP_DIR
- See Also:
-
KEY_USER_LOCKS_DIR
the directory containing locks for single instance applications- See Also:
-
KEY_USER_NETX_RUNNING_FILE
The netx_running file is used to indicate if any instances of netx are running (this file may exist even if no instances are running). All netx instances acquire a shared lock on this file. If this file can be locked (using aFileLock
) in exclusive mode, then other netx instances are not running- See Also:
-
KEY_USER_SECURITY_POLICY
- See Also:
-
KEY_USER_TRUSTED_CA_CERTS
- See Also:
-
KEY_USER_TRUSTED_JSSE_CA_CERTS
- See Also:
-
KEY_USER_TRUSTED_CERTS
- See Also:
-
KEY_USER_TRUSTED_JSSE_CERTS
- See Also:
-
KEY_USER_TRUSTED_CLIENT_CERTS
- See Also:
-
KEY_SYSTEM_SECURITY_POLICY
- See Also:
-
KEY_SYSTEM_TRUSTED_CA_CERTS
- See Also:
-
KEY_SYSTEM_TRUSTED_JSSE_CA_CERTS
- See Also:
-
KEY_SYSTEM_TRUSTED_CERTS
- See Also:
-
KEY_SYSTEM_TRUSTED_JSSE_CERTS
- See Also:
-
KEY_SYSTEM_TRUSTED_CLIENT_CERTS
- See Also:
-
KEY_SECURITY_PROMPT_USER
Boolean. Only show security prompts to user if true- See Also:
-
KEY_SECURITY_LEVEL
- See Also:
-
KEY_SECURITY_TRUSTED_POLICY
- See Also:
-
KEY_SECURITY_ALLOW_HIDE_WINDOW_WARNING
Boolean. Only give AWTPermission("showWindowWithoutWarningBanner") if true- See Also:
-
KEY_SECURITY_PROMPT_USER_FOR_JNLP
Boolean. Only prompt user for granting any JNLP permissions if true- See Also:
-
KEY_SECURITY_INSTALL_AUTHENTICATOR
Boolean. Only install the custom authenticator if true- See Also:
-
KEY_SECURITY_ITW_IGNORECERTISSUES
Boolean. Only install the custom authenticator if true- See Also:
-
KEY_STRICT_JNLP_CLASSLOADER
- See Also:
-
KEY_HTTPS_DONT_ENFORCE
Boolean. Do not prefere https over http- See Also:
-
KEY_PROXY_TYPE
the proxy type. possible values areJNLPProxySelector.PROXY_TYPE_*
- See Also:
-
KEY_PROXY_SAME
Boolean. If true, the http host/port should be used for https and ftp as well- See Also:
-
KEY_PROXY_AUTO_CONFIG_URL
- See Also:
-
KEY_PROXY_BYPASS_LIST
- See Also:
-
KEY_PROXY_BYPASS_LOCAL
- See Also:
-
KEY_PROXY_HTTP_HOST
- See Also:
-
KEY_PROXY_HTTP_PORT
- See Also:
-
KEY_PROXY_HTTPS_HOST
- See Also:
-
KEY_PROXY_HTTPS_PORT
- See Also:
-
KEY_PROXY_FTP_HOST
- See Also:
-
KEY_PROXY_FTP_PORT
- See Also:
-
KEY_PROXY_SOCKS4_HOST
- See Also:
-
KEY_PROXY_SOCKS4_PORT
- See Also:
-
KEY_PROXY_OVERRIDE_HOSTS
- See Also:
-
KEY_ENABLE_LOGGING
- See Also:
-
KEY_ENABLE_LOGGING_HEADERS
- See Also:
-
KEY_ENABLE_LOGGING_TOFILE
- See Also:
-
KEY_ENABLE_APPLICATION_LOGGING_TOFILE
- See Also:
-
KEY_ENABLE_LEGACY_LOGBASEDFILELOG
- See Also:
-
KEY_ENABLE_LOGGING_TOSTREAMS
- See Also:
-
KEY_ENABLE_LOGGING_TOSYSTEMLOG
- See Also:
-
KEY_ENABLE_MANIFEST_ATTRIBUTES_CHECK
- See Also:
-
KEY_CONSOLE_STARTUP_MODE
Console initial status. One of CONSOLE_* values See declaration above: CONSOLE_HIDE = "HIDE"; CONSOLE_SHOW = "SHOW"; CONSOLE_DISABLE = "DISABLE"; CONSOLE_SHOW_PLUGIN = "SHOW_PLUGIN_ONLY"; CONSOLE_SHOW_JAVAWS = "SHOW_JAVAWS_ONLY";- See Also:
-
KEY_JNLP_ASSOCIATIONS
- See Also:
-
KEY_CREATE_DESKTOP_SHORTCUT
- See Also:
-
KEY_JRE_INTSTALL_URL
- See Also:
-
KEY_AUTO_DOWNLOAD_JRE
- See Also:
-
KEY_BROWSER_PATH
- See Also:
-
BROWSER_ENV_VAR
- See Also:
-
ALWAYS_ASK
- See Also:
-
INTERNAL_HTML
- See Also:
-
LEGACY_WIN32_URL__HANDLER
- See Also:
-
KEY_UPDATE_TIMEOUT
- See Also:
-
IGNORE_HEADLESS_CHECK
- See Also:
-
KEY_PLUGIN_JVM_ARGUMENTS
- See Also:
-
KEY_JRE_DIR
- See Also:
-
KEY_SYSTEM_CONFIG
remote configuration properties- See Also:
-
KEY_SYSTEM_CONFIG_MANDATORY
- See Also:
-
KEY_SMALL_SIZE_OVERRIDE_TRESHOLD
Possibility to control hack which resizes very small applets- See Also:
-
KEY_SMALL_SIZE_OVERRIDE_WIDTH
- See Also:
-
KEY_SMALL_SIZE_OVERRIDE_HEIGHT
- See Also:
-
KEY_ENABLE_CACHE_FSYNC
- See Also:
-
KEY_BACKGROUND_THREADS_COUNT
- See Also:
-
KEY_MAX_URLS_DOWNLOAD_INDICATOR
- See Also:
-
TRANSFER_TITLE
- See Also:
-
pattern
-
-
Constructor Details
-
DeploymentConfiguration
public DeploymentConfiguration() -
DeploymentConfiguration
-
-
Method Details
-
setLoadingException
-
getLoadingException
-
resetToDefaults
public void resetToDefaults() -
load
Initialize this deployment configuration by reading configuration files. Generally, it will try to continue and ignore errors it finds (such as file not found).- Throws:
ConfigurationException
- if it encounters a fatal error.
-
load
Initialize this deployment configuration by reading configuration files. Generally, it will try to continue and ignore errors it finds (such as file not found).- Parameters:
fixIssues
- If true, fix issues that are discovered when reading configuration by resorting to the default values- Throws:
ConfigurationException
- if it encounters a fatal error.MalformedURLException
-
copyTo
Copies the current configuration into the target- Parameters:
target
- properties where to copy actual ones
-
getProperty
Get the value for the given key- Parameters:
key
- the property key- Returns:
- the value for the key, or null if it can not be found
-
getAllPropertyNames
- Returns:
- a Set containing all the property names
-
getRaw
- Returns:
- a map containing property names and the corresponding settings
-
setProperty
Sets the value of corresponding to the key. If the value has been marked as locked, it is not changed- Parameters:
key
- the keyvalue
- the value to be associated with the key
-
checkAndFixConfiguration
Check that the configuration is valid. If there are invalid values,set those values to the default values. This is done by using check() method of the ValueCheker for each setting on the actual value. Fixes are made in-place.- Parameters:
initial
- a map representing the initial configuration
-
save
Saves all properties that are not part of default or system properties- Throws:
IOException
- if unable to save the fileIllegalStateException
- if save() is called before load()
-
move14AndOlderFilesTo15StructureCatched
public static void move14AndOlderFilesTo15StructureCatched()
-