Package org.htmlunit
Interface Page
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
AbstractPage
,HtmlPage
,SgmlPage
,TextPage
,UnexpectedPage
,XHtmlPage
,XmlPage
public interface Page extends java.io.Serializable
An abstract page that represents some content returned from a server.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
cleanUp()
Clean up this page.WebWindow
getEnclosingWindow()
Returns the window that this page is sitting inside.java.net.URL
getUrl()
Returns the URL of this page.WebResponse
getWebResponse()
Returns the web response that was originally used to create this page.void
initialize()
Initialize this page.boolean
isHtmlPage()
Returns true if this page is an HtmlPage.
-
-
-
Method Detail
-
initialize
void initialize() throws java.io.IOException
Initialize this page. This method gets called when a new page is loaded and you should probably never need to call it directly.- Throws:
java.io.IOException
- if an IO problem occurs
-
cleanUp
void cleanUp()
Clean up this page. This method gets called by the web client when an other page is loaded in the window and you should probably never need to call it directly
-
getWebResponse
WebResponse getWebResponse()
Returns the web response that was originally used to create this page.- Returns:
- the web response
-
getEnclosingWindow
WebWindow getEnclosingWindow()
Returns the window that this page is sitting inside.- Returns:
- the enclosing window
-
getUrl
java.net.URL getUrl()
Returns the URL of this page.- Returns:
- the URL of this page
-
isHtmlPage
boolean isHtmlPage()
Returns true if this page is an HtmlPage.- Returns:
- true or false
-
-