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
public class WebResponse.Scriptable extends ScriptableDelegate implements NamedDelegate
-
-
Field Summary
-
Fields inherited from class com.meterware.httpunit.scripting.ScriptableDelegate
NULL_SCRIPT_ENGINE
-
-
Constructor Summary
Constructors Constructor Description Scriptable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidalertUser(java.lang.String message)voidcloseWindow()java.lang.Objectget(java.lang.String propertyName)Returns the value of the named property.ClientPropertiesgetClientProperties()booleangetConfirmationResponse(java.lang.String message)HTMLPage.ScriptablegetDocument()WebResponse.Scriptable[]getFrames()java.lang.StringgetName()java.net.URLgetURL()java.lang.StringgetUserResponse(java.lang.String prompt, java.lang.String defaultResponse)voidload()WebResponse.Scriptableopen(java.lang.String urlString, java.lang.String name, java.lang.String features, boolean replace)voidset(java.lang.String propertyName, java.lang.Object value)Sets the value of the named property.voidsetLocation(java.lang.String relativeURL)-
Methods inherited from class com.meterware.httpunit.scripting.ScriptableDelegate
clearCaches, doEvent, doEventScript, evaluateExpression, get, getDelegates, getScriptEngine, getScriptEngine, handleEvent, runScript, setScriptEngine, supportsScriptLanguage
-
-
-
-
Method Detail
-
alertUser
public void alertUser(java.lang.String message)
-
getConfirmationResponse
public boolean getConfirmationResponse(java.lang.String message)
-
getUserResponse
public java.lang.String getUserResponse(java.lang.String prompt, java.lang.String defaultResponse)
-
getClientProperties
public ClientProperties getClientProperties()
-
getDocument
public HTMLPage.Scriptable getDocument()
-
getFrames
public WebResponse.Scriptable[] getFrames() throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
-
load
public void load() throws org.xml.sax.SAXException- Throws:
org.xml.sax.SAXException
-
open
public WebResponse.Scriptable open(java.lang.String urlString, java.lang.String name, java.lang.String features, boolean replace) throws java.io.IOException, org.xml.sax.SAXException
- Throws:
java.io.IOExceptionorg.xml.sax.SAXException
-
closeWindow
public void closeWindow()
-
get
public java.lang.Object get(java.lang.String propertyName)
Returns the value of the named property. Will return null if the property does not exist.- Overrides:
getin classScriptableDelegate
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceNamedDelegate
-
set
public void set(java.lang.String propertyName, java.lang.Object value)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
public void setLocation(java.lang.String relativeURL) throws java.io.IOException, org.xml.sax.SAXException- Throws:
java.io.IOExceptionorg.xml.sax.SAXException
-
getURL
public java.net.URL getURL()
-
-