Package com.meterware.httpunit
Class WebResponse.Scriptable
java.lang.Object
com.meterware.httpunit.scripting.ScriptableDelegate
com.meterware.httpunit.WebResponse.Scriptable
- All Implemented Interfaces:
NamedDelegate,ScriptingEventHandler,ScriptingHandler
- Enclosing class:
WebResponse
-
Field Summary
Fields inherited from class com.meterware.httpunit.scripting.ScriptableDelegate
NULL_SCRIPT_ENGINE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidReturns the value of the named property.booleangetConfirmationResponse(String message) getName()getURL()getUserResponse(String prompt, String defaultResponse) voidload()voidSets the value of the named property.voidsetLocation(String relativeURL) Methods inherited from class com.meterware.httpunit.scripting.ScriptableDelegate
clearCaches, doEvent, doEventScript, evaluateExpression, get, getDelegates, getScriptEngine, getScriptEngine, handleEvent, runScript, setScriptEngine, supportsScriptLanguage
-
Constructor Details
-
Scriptable
public Scriptable()
-
-
Method Details
-
alertUser
-
getConfirmationResponse
-
getUserResponse
-
getClientProperties
-
getDocument
-
getFrames
- Throws:
SAXException
-
load
- Throws:
SAXException
-
open
public WebResponse.Scriptable open(String urlString, String name, String features, boolean replace) throws IOException, SAXException - Throws:
IOExceptionSAXException
-
closeWindow
public void closeWindow() -
get
Returns the value of the named property. Will return null if the property does not exist.- Overrides:
getin classScriptableDelegate
-
getName
- Specified by:
getNamein interfaceNamedDelegate
-
set
Sets the value of the named property. Will throw a runtime exception if the property does not exist or cannot accept the specified value.- Overrides:
setin classScriptableDelegate
-
setLocation
- Throws:
IOExceptionSAXException
-
getURL
-