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.
|
void |
addService(String name,
String manifestUrl) |
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 |
getLaunchRVMPath()
return value of launchRVMPath
|
String |
getLicenseKey()
Get license key for Runtime
|
String |
getLocalManifestFileName()
Get name of local manifest file name
|
String |
getManifestLocation()
Get location of app manifest.
|
int |
getMaxMessageSize()
Get max size of each message between Java adapter and Runtime
|
String |
getRuntimeFallbackVersion()
Get fallback version number of Runtime to launch
|
int |
getRuntimePort()
Get port number of Runtime websocket server
|
String |
getRuntimeVersion()
Get version number of Runtime
|
String |
getSecurityRealm()
Get security realm
|
boolean |
isDoNotLaunch()
Get value of RVM option doNotLaunch setting
|
boolean |
isNonPersistent()
Get value of nonPersistent
|
boolean |
isUseNamedPipePortDiscovery() |
static org.json.JSONObject |
loadManifest(String manifestUrl)
Utltity method to load a amnifest from an URL
|
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 |
setDoNotLaunch(boolean doNotLaunch)
RVM option, to perform all of the startup sequence steps but do not launch the app
|
void |
setLaunchRVMPath(String path)
By default, Java adapter launches Runtime with OpenFin installer.
|
void |
setLicenseKey(String licenseKey)
Set license key for Runtime
|
void |
setLocalManifestFileName(String localManifestFileName)
Set name of automatically generated local manifest file.
|
void |
setManifestLocation(String manifestLocation)
Set location of app manifest
|
void |
setMaxMessageSize(int maxMessageSize)
Set max size of each message between Java adapter and Runtime
|
void |
setNonPersistent(Boolean nonPersistent)
Automatically disconnect the adapter from the runtime when the last application or persistent connection closes
Defaults to false
|
void |
setRuntimeFallbackVersion(String runtimeFallbackVersion)
Set fallback version number of Runtime to launch
|
void |
setRuntimePort(int runtimePort)
Set port number of Runtime websocket server
|
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
|
void |
setUseNamedPipePortDiscovery(boolean useNamedPipePortDiscovery) |
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 String getRuntimeFallbackVersion()
public void setRuntimeFallbackVersion(String runtimeFallbackVersion)
runtimeFallbackVersion
- fallback version of Runtimepublic 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 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 boolean isNonPersistent()
public void setNonPersistent(Boolean nonPersistent)
nonPersistent
- true for non persistent connectionpublic void setDoNotLaunch(boolean doNotLaunch)
doNotLaunch
- true to add --do-not-launch options for RVMpublic boolean isDoNotLaunch()
public boolean isUseNamedPipePortDiscovery()
public void setUseNamedPipePortDiscovery(boolean useNamedPipePortDiscovery)
public void addConfigurationItem(String key, Object value)
key
- key value of the settingvalue
- value of the settingpublic void setLaunchRVMPath(String path)
path
- path for RVMpublic String getLaunchRVMPath()
public String getManifestLocation()
public String getLocalManifestFileName()
public void setLocalManifestFileName(String localManifestFileName)
localManifestFileName
- file namepublic void setManifestLocation(String manifestLocation)
manifestLocation
- location of app manifestpublic int getMaxMessageSize()
public void setMaxMessageSize(int maxMessageSize)
maxMessageSize
- max sizepublic int getRuntimePort()
public void setRuntimePort(int runtimePort)
runtimePort
- port numberpublic String generateRuntimeConfig()
Copyright © 2022. All rights reserved.