com.meterware.httpunit.dom
Class DomBasedScriptingEngineFactory

java.lang.Object
  extended by com.meterware.httpunit.dom.DomBasedScriptingEngineFactory
All Implemented Interfaces:
ScriptingEngineFactory

public class DomBasedScriptingEngineFactory
extends java.lang.Object
implements ScriptingEngineFactory

The scripting engine factory which relies directly on the DOM.


Constructor Summary
DomBasedScriptingEngineFactory()
           
 
Method Summary
 void associate(WebResponse response)
          associate me with a webresponse
 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()
          check whether this ScriptingEngineFactory is enabled
 boolean isThrowExceptionsOnError()
          getter for the throwExceptions flag
 void load(WebResponse response)
          load
 void setThrowExceptionsOnError(boolean throwExceptions)
          setter for the throwExceptions flag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomBasedScriptingEngineFactory

public DomBasedScriptingEngineFactory()
Method Detail

isEnabled

public boolean isEnabled()
check whether this ScriptingEngineFactory is enabled

Specified by:
isEnabled in interface ScriptingEngineFactory

associate

public void associate(WebResponse response)
associate me with a webresponse

Specified by:
associate in interface ScriptingEngineFactory
Parameters:
response - - the WebResponse to use

load

public void load(WebResponse response)
load

Specified by:
load in interface ScriptingEngineFactory
Parameters:
response -

setThrowExceptionsOnError

public void setThrowExceptionsOnError(boolean throwExceptions)
setter for the throwExceptions flag

Specified by:
setThrowExceptionsOnError in interface ScriptingEngineFactory
Parameters:
throwExceptions - - true if Exceptions should be thrown

isThrowExceptionsOnError

public boolean isThrowExceptionsOnError()
getter for the throwExceptions flag

Specified by:
isThrowExceptionsOnError in interface ScriptingEngineFactory
Returns:
- true if Exceptions should be thrown

getErrorMessages

public java.lang.String[] getErrorMessages()
Description copied from interface: ScriptingEngineFactory
Returns the accumulated script error messages encountered. Error messages are accumulated only if 'throwExceptionsOnError' is disabled.

Specified by:
getErrorMessages in interface ScriptingEngineFactory

clearErrorMessages

public void clearErrorMessages()
Description copied from interface: ScriptingEngineFactory
Clears the accumulated script error messages.

Specified by:
clearErrorMessages in interface ScriptingEngineFactory

createHandler

public ScriptingHandler createHandler(HTMLElement elementBase)
Specified by:
createHandler in interface ScriptingEngineFactory

createHandler

public ScriptingHandler createHandler(WebResponse response)
Specified by:
createHandler in interface ScriptingEngineFactory


Copyright © 2011. All Rights Reserved.