|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.meterware.httpunit.WebWindow
A window managed by a WebClient
.
Method Summary | |
void |
close()
Closes this window. |
WebClient |
getClient()
Returns the web client associated with this window. |
WebResponse |
getCurrentPage()
Returns the response representing the main page in this window. |
WebResponse |
getFrameContents(java.lang.String frameName)
Returns the response associated with the specified frame name. |
java.lang.String[] |
getFrameNames()
Returns the name of the currently active frames. |
java.lang.String |
getName()
Returns the name of this window. |
WebResponse |
getOpener()
Returns the web response that contained the script which opened this window. |
WebResponse |
getResource(WebRequest request)
Returns the resource specified by the request. |
WebResponse |
getResponse(java.lang.String urlString)
Submits a GET method request and returns a response. |
WebResponse |
getResponse(WebRequest request)
Submits a web request and returns a response, using all state developed so far as stored in cookies as requested by the server. |
boolean |
hasFrame(java.lang.String frameName)
Returns true if the specified frame name is defined in this window. |
boolean |
isClosed()
Returns true if this window has been closed. |
WebResponse |
sendRequest(WebRequest request)
Submits a web request and returns a response. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public WebClient getClient()
public boolean isClosed()
public void close()
public java.lang.String getName()
public WebResponse getOpener()
public WebResponse getResponse(java.lang.String urlString) throws java.io.IOException, org.xml.sax.SAXException
org.xml.sax.SAXException
- thrown if there is an error parsing the retrieved page
java.io.IOException
public WebResponse sendRequest(WebRequest request) throws java.io.IOException, org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException
public WebResponse getResponse(WebRequest request) throws java.io.IOException, org.xml.sax.SAXException
org.xml.sax.SAXException
- thrown if there is an error parsing the retrieved page
java.io.IOException
public WebResponse getResource(WebRequest request) throws java.io.IOException
java.io.IOException
public java.lang.String[] getFrameNames()
public boolean hasFrame(java.lang.String frameName)
public WebResponse getFrameContents(java.lang.String frameName)
public WebResponse getCurrentPage()
|
Copyright © 2000-2008 Russell Gold. See license agreement for rights granted. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |