public class WebWindow
extends java.lang.Object
WebClient
.Modifier and Type | Method and Description |
---|---|
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.
|
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 pagejava.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 pagejava.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()