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 |
getLicenseKey()
Get license key for Runtime
|
String |
getRdmURL()
Get URL of RDM service
|
String |
getRuntimeAssetURL()
Get URL of Runtime assets
|
String |
getRuntimeVersion()
Get version number of Runtime
|
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 |
setLicenseKey(String licenseKey)
Set license key for Runtime
|
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 startup application.
|
void |
setSupportInformation(String supportInformation)
Specify customized error messages during launch
|
accumulate, append, doubleToString, get, getBigDecimal, getBigInteger, getBoolean, getDouble, getEnum, getInt, getJSONArray, getJSONObject, getLong, getNames, getNames, getString, has, increment, isNull, keys, keySet, length, names, numberToString, opt, optBigDecimal, optBigInteger, optBoolean, optBoolean, optDouble, optDouble, optEnum, optEnum, optInt, optInt, optJSONArray, optJSONObject, optLong, optLong, optQuery, optString, optString, put, put, put, put, put, put, put, putOnce, putOpt, query, quote, quote, remove, similar, stringToValue, testValidity, toJSONArray, toMap, toString, toString, valueToString, wrap, write, write
public 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 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
- config for dialogpublic 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 String getLicenseKey()
public void setLicenseKey(String licenseKey)
licenseKey
- license keypublic 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.