public class RuntimeConfiguration
extends org.json.JSONObject
| Constructor and Description |
|---|
RuntimeConfiguration()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAppAsset(org.json.JSONObject assetConfig)
Add configuration of an app asset
|
void |
addConfigurationItem(String key,
Object value)
Add a configuration setting for launching Runtime.
|
String |
generateRuntimeConfig()
Generates JSON string that can be passed as --config to RVM and Insaller
|
String |
getAdditionalRvmArguments()
Get additional arguments for RVM and Installer
|
String |
getRdmURL()
Get URL of RDM service
|
String |
getRuntimeAssetURL()
Get URL of Runtime assets
|
String |
getRuntimeVersion()
Get version number of Runtime
|
String |
getSecurityRealm()
Get security realm
|
boolean |
isLaunchWithRVM()
return value of launchWithRVM
|
void |
setAdditionalRuntimeArguments(String additionalRuntimeArguments)
Set additional arguments for Runtime
|
void |
setAdditionalRvmArguments(String additionalRvmArguments)
Set additional arguments for RVM and Installer
|
void |
setDevToolsPort(int port)
Set port for accessing devtools on localhost
|
void |
setDialogSettings(org.json.JSONObject dialogSettings)
set configuration to customize the appearance of the RVM progress dialog
|
void |
setLaunchWithRVM(boolean launchWithRVM)
By default, Java adapter launches Runtime with OpenFin installer.
|
void |
setRdmURL(String rdmURL)
Set URL of RDM service
|
void |
setRuntimeAssetURL(String runtimeAssetURL)
Set URL of Runtime assets, including RVM and Runtime
|
void |
setRuntimeVersion(String version)
Set version number of Runtime to launch
|
void |
setRvmVersion(String rvmVersion)
set Defines the minimum RVM version the app requires.
|
void |
setSecurityRealm(String securityRealm)
Set security realm of Runtime
|
void |
setShortCut(org.json.JSONObject shortCut)
set configuration for shortcut
|
void |
setSplashScreenImage(String splashScreenImage)
Specify an image to display while the runtime is loading.
|
void |
setStartupApp(org.json.JSONObject startupApp)
Set configuration of starutp application.
|
void |
setSupportInformation(String supportInformation)
Specify customized error messages during launch
|
accumulate, append, doubleToString, get, getBoolean, getDouble, getInt, getJSONArray, getJSONObject, getLong, getNames, getNames, getString, has, increment, isNull, keys, keySet, length, names, numberToString, opt, optBoolean, optBoolean, optDouble, optDouble, optInt, optInt, optJSONArray, optJSONObject, optLong, optLong, optString, optString, put, put, put, put, put, put, put, putOnce, putOpt, quote, quote, remove, stringToValue, testValidity, toJSONArray, toString, toString, valueToString, wrap, writepublic void setDevToolsPort(int port)
port - port numberpublic void setRuntimeVersion(String version)
version - version numberpublic String getRuntimeVersion()
public void setSecurityRealm(String securityRealm)
securityRealm - name of security realmpublic String getSecurityRealm()
public void setAdditionalRuntimeArguments(String additionalRuntimeArguments)
additionalRuntimeArguments - additional argumentspublic void addAppAsset(org.json.JSONObject assetConfig)
assetConfig - configuration in JSON formatpublic void setRdmURL(String rdmURL)
rdmURL - RDM URLpublic String getRdmURL()
public void setRuntimeAssetURL(String runtimeAssetURL)
runtimeAssetURL - URL of Runtime assetspublic String getRuntimeAssetURL()
public String getAdditionalRvmArguments()
public void setRvmVersion(String rvmVersion)
rvmVersion - version of RVM requiredpublic void setShortCut(org.json.JSONObject shortCut)
shortCut - config for shortcutpublic void setDialogSettings(org.json.JSONObject dialogSettings)
dialogSettings - public void setSplashScreenImage(String splashScreenImage)
splashScreenImage - URL of the imagepublic void setSupportInformation(String supportInformation)
supportInformation - config for support infopublic void setAdditionalRvmArguments(String additionalRvmArguments)
additionalRvmArguments - set additional argumentspublic void setStartupApp(org.json.JSONObject startupApp)
startupApp - configuration in JSON formatpublic void addConfigurationItem(String key, Object value)
key - key value of the settingvalue - value of the settingpublic void setLaunchWithRVM(boolean launchWithRVM)
launchWithRVM - true or falsepublic boolean isLaunchWithRVM()
public String generateRuntimeConfig()
Copyright © 2017. All rights reserved.