|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.meterware.httpunit.javascript.JavaScriptEngineFactory
public class JavaScriptEngineFactory
An implementation of the scripting engine factory which selects a Rhino-based implementation of JavaScript.
Constructor Summary | |
---|---|
JavaScriptEngineFactory()
|
Method Summary | |
---|---|
void |
associate(WebResponse response)
Associates a scripting engine with the specified HTML web response. |
void |
clearErrorMessages()
Clears the accumulated script error messages. |
ScriptingHandler |
createHandler(HTMLElement elementBase)
|
ScriptingHandler |
createHandler(WebResponse response)
|
java.lang.String[] |
getErrorMessages()
Returns the accumulated script error messages encountered. |
boolean |
isEnabled()
Returns true if this engine is enabled. |
boolean |
isThrowExceptionsOnError()
Returns true if script errors cause exceptions to be thrown. |
void |
load(WebResponse response)
Runs the 'onload' event (if any) for the specified HTML web response. |
void |
setThrowExceptionsOnError(boolean throwExceptions)
Determines whether script errors result in exceptions or warning messages. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaScriptEngineFactory()
Method Detail |
---|
public boolean isEnabled()
ScriptingEngineFactory
isEnabled
in interface ScriptingEngineFactory
public void associate(WebResponse response)
ScriptingEngineFactory
associate
in interface ScriptingEngineFactory
public void load(WebResponse response)
ScriptingEngineFactory
load
in interface ScriptingEngineFactory
public void setThrowExceptionsOnError(boolean throwExceptions)
ScriptingEngineFactory
setThrowExceptionsOnError
in interface ScriptingEngineFactory
public boolean isThrowExceptionsOnError()
ScriptingEngineFactory
isThrowExceptionsOnError
in interface ScriptingEngineFactory
public java.lang.String[] getErrorMessages()
ScriptingEngineFactory
getErrorMessages
in interface ScriptingEngineFactory
public void clearErrorMessages()
ScriptingEngineFactory
clearErrorMessages
in interface ScriptingEngineFactory
public ScriptingHandler createHandler(HTMLElement elementBase)
createHandler
in interface ScriptingEngineFactory
public ScriptingHandler createHandler(WebResponse response)
createHandler
in interface ScriptingEngineFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |