Package org.htmlunit

# Interface Page

All Superinterfaces:
  `Serializable`

All Known Implementing Classes:
  `AbstractPage`, `HtmlPage`, `SgmlPage`, `TextPage`, `UnexpectedPage`, `XHtmlPage`, `XmlPage`

public interface Page extends Serializable
An abstract page that represents some content returned from a server.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `cleanUp()`
  Clean up this page.
  `WebWindow`
  `getEnclosingWindow()`
  Returns the window that this page is sitting inside.
  `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 Details

  - ### initialize

    void initialize() throws 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:
      `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

    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