java.lang.Objectorg.mozilla.javascript.ScriptableObject
org.wso2.mashup.hostobjects.scraper.ScraperHostObject
public class ScraperHostObject
| Field Summary |
|---|
| Fields inherited from class org.mozilla.javascript.ScriptableObject |
|---|
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST |
| Fields inherited from interface org.mozilla.javascript.Scriptable |
|---|
NOT_FOUND |
| Constructor Summary | |
|---|---|
ScraperHostObject()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
get(java.lang.String s,
org.mozilla.javascript.Scriptable scriptable)
eg: var config = |
java.lang.String |
getClassName()
This function does not get invoked explicitly. |
boolean |
has(java.lang.String s,
org.mozilla.javascript.Scriptable scriptable)
This function does not get invoked explicitly. |
static org.mozilla.javascript.Scriptable |
jsConstructor(org.mozilla.javascript.Context cx,
java.lang.Object[] args,
org.mozilla.javascript.Function ctorObj,
boolean inNewExpr)
|
| Methods inherited from class org.mozilla.javascript.ScriptableObject |
|---|
associateValue, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, get, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, hasInstance, hasProperty, hasProperty, isConst, isSealed, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScraperHostObject()
| Method Detail |
|---|
public static org.mozilla.javascript.Scriptable jsConstructor(org.mozilla.javascript.Context cx,
java.lang.Object[] args,
org.mozilla.javascript.Function ctorObj,
boolean inNewExpr)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getClassName()
getClassName in interface org.mozilla.javascript.ScriptablegetClassName in class org.mozilla.javascript.ScriptableObject
public java.lang.Object get(java.lang.String s,
org.mozilla.javascript.Scriptable scriptable)
eg:
var config =
;
var scraper = new Scraper(config);
var response = scraper.response;
get in interface org.mozilla.javascript.Scriptableget in class org.mozilla.javascript.ScriptableObjects - - The property requested forscriptable - - The Scriptable object that the property was requested from
public boolean has(java.lang.String s,
org.mozilla.javascript.Scriptable scriptable)
has in interface org.mozilla.javascript.Scriptablehas in class org.mozilla.javascript.ScriptableObjects - - The property requested forscriptable - - The Scriptable object that the property was requested from