Package | Description |
---|---|
org.htmlunit |
Framework classes (contains the
WebClient
class which is the main entry point). |
org.htmlunit.css |
Classes supporting Cascading Style Sheets.
|
org.htmlunit.html |
Classes specific to HTML pages, particularly the
HtmlPage which represents
an HTML document and provides access to its content. |
org.htmlunit.javascript |
Classes in this package are specific to the JavaScript engine - users of HtmlUnit shouldn't
need anything in this package.
|
org.htmlunit.javascript.background |
Classes relating to background JavaScript execution, which is usually triggered via
setTimeout() or setInterval() . |
org.htmlunit.javascript.host |
Implementations of the various JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
org.htmlunit.javascript.host.dom |
Implementations of the DOM JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
org.htmlunit.javascript.host.html |
Implementations of the HTML JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
org.htmlunit.javascript.host.xml |
Implementations of the XML JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
org.htmlunit.xml |
Classes specific to XML pages.
|
Modifier and Type | Class and Description |
---|---|
class |
DialogWindow
A window opened in JavaScript via either
window.showModalDialog
or window.showModelessDialog . |
class |
TopLevelWindow
A window representing a top level browser window.
|
class |
WebWindowImpl
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
Modifier and Type | Method and Description |
---|---|
WebWindow |
WebClient.getCurrentWindow()
Returns the "current" window for this client.
|
WebWindow |
SgmlPage.getEnclosingWindow()
Returns the window that this page is sitting inside.
|
WebWindow |
Page.getEnclosingWindow()
Returns the window that this page is sitting inside.
|
WebWindow |
AbstractPage.getEnclosingWindow()
Returns the window that this page is sitting inside.
|
WebWindow |
TopLevelWindow.getOpener()
Returns the opener property.
|
WebWindow |
WebWindow.getParentWindow()
Returns the window that contains this window.
|
WebWindow |
TopLevelWindow.getParentWindow()
Returns the window that contains this window.
|
WebWindow |
DialogWindow.getParentWindow()
Returns the window that contains this window.
|
WebWindow |
WebWindow.getTopWindow()
Returns the top level window that contains this window.
|
WebWindow |
TopLevelWindow.getTopWindow()
Returns the top level window that contains this window.
|
WebWindow |
DialogWindow.getTopWindow()
Returns the top level window that contains this window.
|
WebWindow |
WebWindowEvent.getWebWindow()
Returns the web window that fired the event.
|
WebWindow |
WebClient.getWebWindowByName(String name)
Returns the first
WebWindow that matches the specified name. |
WebWindow |
WebClient.openTargetWindow(WebWindow opener,
String windowName,
String defaultName)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
WebWindow |
WebClient.openWindow(URL url,
String windowName)
Open a new window with the specified name.
|
WebWindow |
WebClient.openWindow(URL url,
String windowName,
WebWindow opener)
Open a new window with the specified name.
|
Modifier and Type | Method and Description |
---|---|
List<WebWindow> |
WebClient.getWebWindows()
Returns an immutable list of open web windows (whether they are top level windows or not).
|
Modifier and Type | Method and Description |
---|---|
boolean |
WebClient.containsWebWindow(WebWindow webWindow)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
protected HtmlPage |
DefaultPageCreator.createHtmlPage(WebResponse webResponse,
WebWindow webWindow)
Creates an HtmlPage for this WebResponse.
|
Page |
PageCreator.createPage(WebResponse webResponse,
WebWindow webWindow)
Create a Page object for the specified web response.
|
Page |
DefaultPageCreator.createPage(WebResponse webResponse,
WebWindow webWindow)
Create a Page object for the specified web response.
|
protected TextPage |
DefaultPageCreator.createTextPage(WebResponse webResponse,
WebWindow webWindow)
Creates a TextPage for this WebResponse.
|
protected UnexpectedPage |
DefaultPageCreator.createUnexpectedPage(WebResponse webResponse,
WebWindow webWindow)
Creates an UnexpectedPage for this WebResponse.
|
protected XHtmlPage |
DefaultPageCreator.createXHtmlPage(WebResponse webResponse,
WebWindow webWindow)
Creates an XHtmlPage for this WebResponse.
|
protected SgmlPage |
DefaultPageCreator.createXmlPage(WebResponse webResponse,
WebWindow webWindow)
Creates an SgmlPage for this WebResponse.
|
void |
WebClient.deregisterWebWindow(WebWindow webWindow)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
void |
WebClient.download(WebWindow requestingWindow,
String target,
WebRequest request,
boolean checkHash,
boolean forceLoad,
String forceAttachmentWithFilename,
String description)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
<P extends Page> |
WebClient.getPage(WebWindow webWindow,
WebRequest webRequest)
Send a request to a server and return a Page that represents the
response from the server.
|
Map<String,String> |
StorageHolder.getSessionStorage(WebWindow webWindow)
Gets the local storage (map).
|
void |
WebClient.initialize(WebWindow webWindow,
Page page)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
void |
WebClient.initializeEmptyWindow(WebWindow webWindow,
Page page)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
Page |
WebClient.loadWebResponseInto(WebResponse webResponse,
WebWindow webWindow)
Creates a page based on the specified response and inserts it into the specified window.
|
Page |
WebClient.loadWebResponseInto(WebResponse webResponse,
WebWindow webWindow,
String forceAttachmentWithFilename)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
DialogWindow |
WebClient.openDialogWindow(URL url,
WebWindow opener,
Object dialogArguments)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
WebWindow |
WebClient.openTargetWindow(WebWindow opener,
String windowName,
String defaultName)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
WebWindow |
WebClient.openWindow(URL url,
String windowName,
WebWindow opener)
Open a new window with the specified name.
|
void |
WebClient.registerWebWindow(WebWindow webWindow)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
void |
WebClient.setCurrentWindow(WebWindow window)
Sets the "current" window for this client.
|
void |
SgmlPage.setEnclosingWindow(WebWindow window)
Sets the window that contains this page.
|
void |
TopLevelWindow.setOpener(WebWindow opener)
Sets the opener property.
|
Constructor and Description |
---|
AbstractPage(WebResponse webResponse,
WebWindow enclosingWindow)
Creates an instance.
|
History(WebWindow window)
Creates a new navigation history for the specified window.
|
SgmlPage(WebResponse webResponse,
WebWindow webWindow)
Creates an instance of SgmlPage.
|
TextPage(WebResponse webResponse,
WebWindow enclosingWindow)
Creates an instance.
|
UnexpectedPage(WebResponse webResponse,
WebWindow enclosingWindow)
Creates an instance.
|
WebWindowEvent(WebWindow webWindow,
int type,
Page oldPage,
Page newPage)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
CssStyleSheet.isActive(org.htmlunit.cssparser.dom.MediaListImpl mediaList,
WebWindow webWindow)
Returns whether the specified
MediaList is active or not. |
Modifier and Type | Class and Description |
---|---|
class |
FrameWindow
The web window for a frame or iframe.
|
Modifier and Type | Method and Description |
---|---|
WebWindow |
FrameWindow.getParentWindow()
Returns the window that contains this window.
|
WebWindow |
FrameWindow.getTopWindow()
Returns the top level window that contains this window.
|
Constructor and Description |
---|
HtmlPage(WebResponse webResponse,
WebWindow webWindow)
Creates an instance of HtmlPage.
|
XHtmlPage(WebResponse webResponse,
WebWindow webWindow)
Creates a new XHTML page instance.
|
Modifier and Type | Method and Description |
---|---|
void |
JavaScriptEngine.initialize(WebWindow webWindow,
Page page)
Performs initialization for the given webWindow.
|
void |
AbstractJavaScriptEngine.initialize(WebWindow webWindow,
Page page)
Performs initialization for the given webWindow and page.
|
void |
JavaScriptEngine.registerWindowAndMaybeStartEventLoop(WebWindow webWindow)
Register WebWindow with the JavaScriptExecutor.
|
void |
AbstractJavaScriptEngine.registerWindowAndMaybeStartEventLoop(WebWindow webWindow)
Register WebWindow with the JavaScriptExecutor.
|
Modifier and Type | Method and Description |
---|---|
void |
JavaScriptExecutor.addWindow(WebWindow newWindow)
Register a window with the eventLoop.
|
void |
DefaultJavaScriptExecutor.addWindow(WebWindow newWindow)
Register a window with the eventLoop.
|
org.htmlunit.javascript.background.JavaScriptFunctionJob |
BackgroundJavaScriptFactory.createJavaScriptJob(int initialDelay,
Integer period,
String label,
WebWindow window,
org.htmlunit.corejs.javascript.Function function,
Object[] args)
Creates a new JavaScript execution job, where the JavaScript code to execute is a function.
|
JavaScriptJob |
BackgroundJavaScriptFactory.createJavaScriptJob(int initialDelay,
Integer period,
String label,
WebWindow window,
String script)
Creates a new JavaScript execution job, where the JavaScript code to execute is a string.
|
JavaScriptJobManager |
BackgroundJavaScriptFactory.createJavaScriptJobManager(WebWindow webWindow)
Creates a new JavaScriptJobManager for the given window.
|
Modifier and Type | Method and Description |
---|---|
WebWindow |
Window.getWebWindow()
Returns the WebWindow associated with this Window.
|
Modifier and Type | Method and Description |
---|---|
static WindowProxy |
Window.getProxy(WebWindow w)
Returns the proxy for the specified window.
|
void |
Window.initialize(WebWindow webWindow,
Page pageToEnclose)
Initializes this window.
|
Constructor and Description |
---|
WindowProxy(WebWindow webWindow)
|
Modifier and Type | Method and Description |
---|---|
static Document |
DOMParser.parseHtmlDocument(HtmlUnitScriptable scriptable,
WebResponse webResponse,
WebWindow webWindow)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
Constructor and Description |
---|
DocumentProxy(WebWindow webWindow)
|
Constructor and Description |
---|
XMLDocument(WebWindow enclosingWindow)
Creates a new instance, with associated XmlPage.
|
Constructor and Description |
---|
XmlPage(Node node,
WebWindow enclosingWindow)
Creates an instance.
|
XmlPage(WebResponse webResponse,
WebWindow enclosingWindow)
Creates an instance.
|
XmlPage(WebResponse webResponse,
WebWindow enclosingWindow,
boolean ignoreSAXException)
Creates an instance.
|
XmlPage(WebResponse webResponse,
WebWindow enclosingWindow,
boolean ignoreSAXException,
boolean handleXHTMLAsHTML)
Creates an instance.
|
Copyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.