com.meterware.httpunit
Class WebResponse.Scriptable

java.lang.Object
  extended by com.meterware.httpunit.scripting.ScriptableDelegate
      extended by com.meterware.httpunit.WebResponse.Scriptable
All Implemented Interfaces:
NamedDelegate
Enclosing class:
WebResponse

public class WebResponse.Scriptable
extends ScriptableDelegate
implements NamedDelegate


Constructor Summary
WebResponse.Scriptable()
           
 
Method Summary
 void alert(java.lang.String message)
           
 void close()
           
 java.lang.Object get(java.lang.String propertyName)
          Returns the value of the named property.
 ClientProperties getClientProperties()
           
 boolean getConfirmationResponse(java.lang.String message)
           
 HTMLPage.Scriptable getDocument()
           
 WebResponse.Scriptable[] getFrames()
           
 java.lang.String getName()
           
 java.net.URL getURL()
           
 java.lang.String getUserResponse(java.lang.String prompt, java.lang.String defaultResponse)
           
 void load()
           
 WebResponse.Scriptable open(java.lang.String urlString, java.lang.String name, java.lang.String features, boolean replace)
           
 void set(java.lang.String propertyName, java.lang.Object value)
          Sets the value of the named property.
 void setLocation(java.lang.String relativeURL)
           
 
Methods inherited from class com.meterware.httpunit.scripting.ScriptableDelegate
doEvent, evaluateExpression, get, getDelegates, getScriptEngine, getScriptEngine, runScript, setScriptEngine, supportsScript
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebResponse.Scriptable

public WebResponse.Scriptable()
Method Detail

alert

public void alert(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.IOException
org.xml.sax.SAXException

close

public void close()

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:
get in class ScriptableDelegate

getName

public java.lang.String getName()
Specified by:
getName in interface NamedDelegate

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:
set in class ScriptableDelegate

setLocation

public void setLocation(java.lang.String relativeURL)
                 throws java.io.IOException,
                        org.xml.sax.SAXException
Throws:
java.io.IOException
org.xml.sax.SAXException

getURL

public java.net.URL getURL()

Copyright © 2000-2006 Russell Gold. See license agreement for rights granted.