com.gargoylesoftware.htmlunit
Class JavaScriptPage

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.JavaScriptPage
All Implemented Interfaces:
Page

public class JavaScriptPage
extends java.lang.Object
implements Page

A generic page that will be returned for JavaScript content. Specifically any content types of "text/javascript"

Version:
$Revision: 1.3 $
Author:
Mike Bowler, David K. Taylor

Constructor Summary
JavaScriptPage(WebResponse webResponse, WebWindow enclosingWindow)
 Create an instance
 
Method Summary
 void cleanUp()
 Clean up this page.
 java.lang.String getContent()
 Return the content of the page
 WebWindow getEnclosingWindow()
 Return the window that this page is sitting inside.
 WebResponse getWebResponse()
 Return the web response that was originally used to create this page.
 void initialize()
 Initialize this page.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaScriptPage

public JavaScriptPage(WebResponse webResponse,
                      WebWindow enclosingWindow)
Create an instance

Parameters:
webResponse - The response from the server
enclosingWindow - The window that holds the page.
Method Detail

cleanUp

public void cleanUp()
Clean up this page.

Specified by:
cleanUp in interface Page

getContent

public java.lang.String getContent()
Return the content of the page

Returns:
See above

getEnclosingWindow

public WebWindow getEnclosingWindow()
Return the window that this page is sitting inside.

Specified by:
getEnclosingWindow in interface Page
Returns:
The enclosing frame or null if this page isn't inside a frame.

getWebResponse

public WebResponse getWebResponse()
Return the web response that was originally used to create this page.

Specified by:
getWebResponse in interface Page
Returns:
The web response

initialize

public void initialize()
Initialize this page.

Specified by:
initialize in interface Page


Copyright © 2003-2016 AppPerfect Corporation. All Rights Reserved.