Package org.htmlunit
Framework classes (contains the
WebClient
class which is the main entry point).-
Interface Summary Interface Description AlertHandler A handler for JavaScript alerts.ClipboardHandler A handler for system clipboard access.ConfirmHandler A handler for the JavaScript functionwindow.confirm()
.DownloadedContent Wrapper for content downloaded from a remote server.FrameContentHandler Interface to customize the handling of frame content.IncorrectnessListener Interface to receive notification of incorrect information in HTML code (but not the parser messages), headers, ...OnbeforeunloadHandler A handler foronbeforeunload
events.Page An abstract page that represents some content returned from a server.PageCreator Something that knows how to create a page object.PrintHandler A handler for JavaScript Window.print() (Printing Spec).PromptHandler A handler for JavaScript window.prompt().RefreshHandler A handler for page refreshes.ScriptPreProcessor A script pre processor call back.StatusHandler A handler for changes towindow.status
.WebConnection An object which handles the actual communication portion of page retrieval/submission.WebConsole.Logger A simple logging interface abstracting logging APIs.WebWindow An interface that represents one window in a browser.WebWindowListener A listener for WebWindowEvent's. -
Class Summary Class Description AbstractPage A basicPage
implementation.AjaxController This class is notified when AJAX calls are made, and has the ability to influence these calls.BrowserVersion Objects of this class represent one specific version of a given browser.BrowserVersion.BrowserVersionBuilder Because BrowserVersion is immutable we need a builder for this complex object setup.Cache Simple cache implementation which caches compiled JavaScript files and parsed CSS snippets.Cache.Entry A cache entry.CollectingAlertHandler A simple alert handler that keeps track of alerts in a list.CookieManager Manages cookies for aWebClient
.DefaultCredentialsProvider Default HtmlUnit implementation of theCredentialsProvider
interface.DefaultCredentialsProvider.AuthScopeProxy We have to wrapAuthScope
instances in a serializable proxy so that theDefaultCredentialsProvider
class can be serialized correctly.DefaultCredentialsProvider.SocksProxyAuthenticator DefaultCssErrorHandler HtmlUnit's default implementation ofCSSErrorHandler
, which logs all CSS problems.DefaultPageCreator The default implementation ofPageCreator
.DialogWindow A window opened in JavaScript via eitherwindow.showModalDialog
orwindow.showModelessDialog
.DownloadedContent.InMemory Implementation keeping content in memory.DownloadedContent.OnFile Implementation keeping content on the file system.FormEncodingType A collection of constants that represent the various ways a form can be encoded when submitted.History Representation of the navigation history of a single window.History.HistoryEntry The single entry in the history.HttpHeader Various constants.HttpWebConnection Default implementation ofWebConnection
, using the HttpClient library to perform HTTP requests.HttpWebConnection.AcceptEncodingHeaderHttpRequestInterceptor HttpWebConnection.AcceptHeaderHttpRequestInterceptor HttpWebConnection.AcceptLanguageHeaderHttpRequestInterceptor HttpWebConnection.DntHeaderHttpRequestInterceptor HttpWebConnection.HostHeaderHttpRequestInterceptor We must have a separate class per header, because of org.apache.http.protocol.ChainBuilder.HttpWebConnection.MultiHttpRequestInterceptor HttpWebConnection.RefererHeaderHttpRequestInterceptor HttpWebConnection.RequestClientConnControl HttpWebConnection.SecClientHintUserAgentHeaderHttpRequestInterceptor HttpWebConnection.SecClientHintUserAgentMobileHeaderHttpRequestInterceptor HttpWebConnection.SecClientHintUserAgentPlatformHeaderHttpRequestInterceptor HttpWebConnection.SecFetchDestHeaderHttpRequestInterceptor HttpWebConnection.SecFetchModeHeaderHttpRequestInterceptor HttpWebConnection.SecFetchSiteHeaderHttpRequestInterceptor HttpWebConnection.SecFetchUserHeaderHttpRequestInterceptor HttpWebConnection.SynchronizedAuthCache An authentication cache that is synchronized.HttpWebConnection.UpgradeInsecureRequestHeaderHttpRequestInterceptor HttpWebConnection.UserAgentHeaderHttpRequestInterceptor ImmediateRefreshHandler This refresh handler immediately refreshes the specified page, using the specified URL and ignoring the wait time.IncorrectnessListenerImpl Default implementation ofIncorrectnessListener
configured onWebClient
.MockWebConnection A fakeWebConnection
designed to mock out the actual HTTP connections.MockWebConnection.RawResponseData Contains the raw data configured for a response.NicelyResynchronizingAjaxController ThisAjaxController
resynchronizes calls calling from the main thread.NiceRefreshHandler This refresh handler performs an immediate refresh if the refresh delay is less or equal to the configured time and otherwise ignores totally the refresh instruction.PluginConfiguration Contains information about a plugin as available in JavaScript viadocument.navigator.plugins
, as well as the associated mime types.PluginConfiguration.MimeType Holds information about a single mime type associated with a plugin.ProxyConfig Class which centralizes proxy configuration, in an effort to reduce clutter in theWebClient
class.Screen Screen
.ScriptResult This object contains the result of executing a chunk of script code.SgmlPage A basic class of Standard Generalized Markup Language (SGML), e.g.SilentCssErrorHandler Implementation ofCSSErrorHandler
which ignores all CSS problems.StorageHolder Holder for different types of storages.StringWebResponse A simple WebResponse created from a string.TextPage A generic page that will be returned for any text related content.ThreadedRefreshHandler This refresh handler spawns a new thread that waits the specified number of seconds before refreshing the specified page, using the specified URL.TopLevelWindow A window representing a top level browser window.UnexpectedPage A generic page that is returned whenever an unexpected content type is returned by the server.Version Class to display version information about HtmlUnit.WaitingRefreshHandler This refresh handler waits the specified number of seconds (or a user defined maximum) before refreshing the specified page, using the specified URL.WebAssert Utility class which contains standard assertions for HTML pages.WebClient The main starting point in HtmlUnit: this class simulates a web browser.WebClient.CSS3ParserPool Our pool of CSS3Parsers.WebClient.CurrentWindowTracker Keeps track of the current window.WebClient.LoadJob WebClient.PooledCSS3Parser This is a poolable CSS3Parser which can be reused automatically when closed.WebClient.ThreadNamingFactory Our simple impl of a ThreadFactory (decorator) to be able to name our threads.WebClientOptions Represents options of aWebClient
.WebClientOptions.Geolocation WebConsole This class can be used to print messages to the logger.WebConsole.DefaultLogger This class is the default logger used by WebConsole.WebRequest Parameter object for making web requests.WebResponse A response from a web server.WebResponseData Simple data object to simplify WebResponse creation.WebResponseFromCache AWebResponse
implementation to deliver with content from cache.WebWindowAdapter An adapter for the WebWindowListener interface.WebWindowEvent An event that will be fired when a WebWindow changes.WebWindowImpl INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Base class for common WebWindow functionality. -
Enum Summary Enum Description BrowserVersionFeatures Constants of various features of eachBrowserVersion
.DefaultPageCreator.PageType The different supported page types.HttpMethod Represents the various ways a page can be submitted.StorageHolder.Type Type for Storage.WebRequest.HttpHint -
Exception Summary Exception Description ElementNotFoundException An exception that is thrown when a specified XML element cannot be found in the DOM model.FailingHttpStatusCodeException An exception that is thrown when the server returns a failing status code.NotYetImplementedException Thrown if a method is not yet implemented for some reason but at least available from js.ObjectInstantiationException Thrown if an object could not be instantiated for some reason.ScriptException An exception that will be thrown if an error occurs during the processing of a script.WebWindowNotFoundException Exception to indicate that noWebWindow
could be found that matched a given name.