com.gargoylesoftware.htmlunit
Interface Page

All Superinterfaces:
Serializable
All Known Implementing Classes:
BinaryPage, HtmlPage, JavaScriptPage, SgmlPage, TextPage, UnexpectedPage, XHtmlPage, XmlPage

public interface Page
extends Serializable

An abstract page that represents some content returned from a server.

Version:
$Revision: 5764 $
Author:
Mike Bowler, David K. Taylor, Marc Guillemot

Method Summary
 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.
 

Method Detail

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()
             throws IOException
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

Throws:
IOException - if an IO problem occurs

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


Copyright © 2002-2010 Gargoyle Software Inc.. All Rights Reserved.