Package com.meterware.httpunit.scripting
Interface ScriptingEngineFactory
public interface ScriptingEngineFactory
- Author:
- Russell Gold
-
Method Summary
Modifier and TypeMethodDescriptionvoid
associate
(WebResponse response) Associates a scripting engine with the specified HTML web response.void
Clears the accumulated script error messages.createHandler
(HTMLElement elementBase) createHandler
(WebResponse response) String[]
Returns the accumulated script error messages encountered.boolean
Returns true if this engine is enabled.boolean
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.
-
Method Details
-
isEnabled
boolean isEnabled()Returns true if this engine is enabled. -
associate
Associates a scripting engine with the specified HTML web response. -
load
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. -
setThrowExceptionsOnError
void setThrowExceptionsOnError(boolean throwExceptions) Determines whether script errors result in exceptions or warning messages. -
isThrowExceptionsOnError
boolean isThrowExceptionsOnError()Returns true if script errors cause exceptions to be thrown. -
getErrorMessages
String[] getErrorMessages()Returns the accumulated script error messages encountered. Error messages are accumulated only if 'throwExceptionsOnError' is disabled. -
clearErrorMessages
void clearErrorMessages()Clears the accumulated script error messages. -
createHandler
-
createHandler
-