|
|||||||||
| Home >> All >> com >> meterware >> httpunit >> [ javascript overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.meterware.httpunit.javascript
Class JavaScriptEngineFactory

java.lang.Objectcom.meterware.httpunit.javascript.JavaScriptEngineFactory
- All Implemented Interfaces:
- com.meterware.httpunit.scripting.ScriptingEngineFactory
- public class JavaScriptEngineFactory
- extends java.lang.Object
- implements com.meterware.httpunit.scripting.ScriptingEngineFactory
- extends java.lang.Object
An implementation of the scripting engine factory which selects a Rhino-based implementation of JavaScript.
| Constructor Summary | |
JavaScriptEngineFactory()
|
|
| Method Summary | |
void |
associate(com.meterware.httpunit.WebResponse response)
Associates a scripting engine with the specified HTML web response. |
void |
clearErrorMessages()
Clears the accumulated script error messages. |
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(com.meterware.httpunit.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 |
JavaScriptEngineFactory
public JavaScriptEngineFactory()
| Method Detail |
isEnabled
public boolean isEnabled()
- Description copied from interface:
com.meterware.httpunit.scripting.ScriptingEngineFactory - Returns true if this engine is enabled.
- Specified by:
isEnabledin interfacecom.meterware.httpunit.scripting.ScriptingEngineFactory
associate
public void associate(com.meterware.httpunit.WebResponse response)
- Description copied from interface:
com.meterware.httpunit.scripting.ScriptingEngineFactory - Associates a scripting engine with the specified HTML web response.
- Specified by:
associatein interfacecom.meterware.httpunit.scripting.ScriptingEngineFactory
load
public void load(com.meterware.httpunit.WebResponse response)
- Description copied from interface:
com.meterware.httpunit.scripting.ScriptingEngineFactory - Runs the 'onload' event (if any) for the specified HTML web response. Will associate a scripting engine with
the response if that has not already been done.
- Specified by:
loadin interfacecom.meterware.httpunit.scripting.ScriptingEngineFactory
setThrowExceptionsOnError
public void setThrowExceptionsOnError(boolean throwExceptions)
- Description copied from interface:
com.meterware.httpunit.scripting.ScriptingEngineFactory - Determines whether script errors result in exceptions or warning messages.
- Specified by:
setThrowExceptionsOnErrorin interfacecom.meterware.httpunit.scripting.ScriptingEngineFactory
isThrowExceptionsOnError
public boolean isThrowExceptionsOnError()
- Description copied from interface:
com.meterware.httpunit.scripting.ScriptingEngineFactory - Returns true if script errors cause exceptions to be thrown.
- Specified by:
isThrowExceptionsOnErrorin interfacecom.meterware.httpunit.scripting.ScriptingEngineFactory
getErrorMessages
public java.lang.String[] getErrorMessages()
- Description copied from interface:
com.meterware.httpunit.scripting.ScriptingEngineFactory - Returns the accumulated script error messages encountered. Error messages are accumulated only
if 'throwExceptionsOnError' is disabled.
- Specified by:
getErrorMessagesin interfacecom.meterware.httpunit.scripting.ScriptingEngineFactory
clearErrorMessages
public void clearErrorMessages()
- Description copied from interface:
com.meterware.httpunit.scripting.ScriptingEngineFactory - Clears the accumulated script error messages.
- Specified by:
clearErrorMessagesin interfacecom.meterware.httpunit.scripting.ScriptingEngineFactory
|
|||||||||
| Home >> All >> com >> meterware >> httpunit >> [ javascript overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.meterware.httpunit.javascript.JavaScriptEngineFactory