public class HostedModePluginObject
extends net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
Constructor and Description |
---|
HostedModePluginObject(com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine jsEngine,
TreeLogger logger)
Creates a HostedModePluginObject with the passed-in JavaScriptEngine.
|
Modifier and Type | Method and Description |
---|---|
boolean |
connect(String url,
String sessionKey,
String address,
String module,
String version)
Initiate a hosted mode connection to the requested port and load the
requested module.
|
boolean |
disconnect() |
Object |
get(String name,
net.sourceforge.htmlunit.corejs.javascript.Scriptable start) |
String |
getClassName() |
boolean |
init(String version)
Verify that the plugin can be initialized properly and supports the
requested version.
|
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, equivalentValues, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasInstance, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isReadOnlySettable, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size
public HostedModePluginObject(com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine jsEngine, TreeLogger logger)
jsEngine
- The JavaScriptEngine.public boolean connect(String url, String sessionKey, String address, String module, String version)
url
- the complete urlsessionKey
- a length 16 string to identify a "session"address
- "host:port" or "ipAddress:port" to use for the OOPHM servermodule
- module name to loadversion
- version stringpublic boolean disconnect()
public Object get(String name, net.sourceforge.htmlunit.corejs.javascript.Scriptable start)
get
in interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
get
in class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
public String getClassName()
getClassName
in interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
getClassName
in class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
public boolean init(String version)
version
- hosted mode protocol versionCopyright © 2018. All rights reserved.