Package | Description |
---|---|
com.gargoylesoftware.htmlunit |
Framework classes
|
com.gargoylesoftware.htmlunit.html |
Classes specific to html pages
|
com.gargoylesoftware.htmlunit.javascript |
Classes in this package are specific for the javascript engine - users of HtmlUnit shouldn't
need anything in this package.
|
com.gargoylesoftware.htmlunit.util |
Misc utilities
|
com.gargoylesoftware.htmlunit.xml |
Classes specific to xml pages
|
Modifier and Type | Class and Description |
---|---|
class |
StringWebResponse
A simple WebResponse created from a string.
|
class |
WebResponseImpl
Simple base class for
WebResponse . |
Modifier and Type | Method and Description |
---|---|
WebResponse |
Cache.getCachedContent(WebRequestSettings request)
Returns the cached content corresponding to the specified request.
|
WebResponse |
FailingHttpStatusCodeException.getResponse()
Gets the failing response.
|
WebResponse |
WebConnection.getResponse(WebRequestSettings webRequestSettings)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Submits a request and retrieves a response. |
WebResponse |
MockWebConnection.getResponse(WebRequestSettings webRequestSettings)
Submit a request and retrieve a response
|
abstract WebResponse |
WebConnectionImpl.getResponse(WebRequestSettings webRequestSettings)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Submits a request and retrieves a response. |
WebResponse |
HttpWebConnection.getResponse(WebRequestSettings webRequestSettings)
Submit a request and retrieve a response
|
WebResponse |
SgmlPage.getWebResponse()
Return the web response that was originally used to create this page.
|
WebResponse |
Page.getWebResponse()
Return the web response that was originally used to create this page.
|
WebResponse |
UnexpectedPage.getWebResponse()
Return the web response that was originally used to create this page.
|
WebResponse |
JavaScriptPage.getWebResponse()
Return the web response that was originally used to create this page.
|
WebResponse |
TextPage.getWebResponse()
Return the web response that was originally used to create this page.
|
WebResponse |
WebClient.loadWebResponse(WebRequestSettings webRequestSettings)
Loads a
WebResponse from the server |
protected WebResponse |
HttpWebConnection.newWebResponseInstance(String charset,
WebResponseData responseData,
long loadTime,
SubmitMethod requestMethod,
URL originatingURL)
Construct an appropriate WebResponse.
|
Modifier and Type | Method and Description |
---|---|
void |
Cache.cacheIfNeeded(WebRequestSettings request,
WebResponse response)
Cache the response if needed.
|
protected HtmlPage |
DefaultPageCreator.createHtmlPage(WebResponse webResponse,
WebWindow webWindow)
Create a HtmlPage for this WebResponse
|
protected JavaScriptPage |
DefaultPageCreator.createJavaScriptPage(WebResponse webResponse,
WebWindow webWindow)
Create a JavaScriptPage 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)
Create a TextPage for this WebResponse
|
protected UnexpectedPage |
DefaultPageCreator.createUnexpectedPage(WebResponse webResponse,
WebWindow webWindow)
Create an UnexpectedPage for this WebResponse
|
protected XmlPage |
DefaultPageCreator.createXmlPage(WebResponse webResponse,
WebWindow webWindow)
Create an XmlPage for this WebResponse
|
protected boolean |
Cache.isCacheable(WebRequestSettings request,
WebResponse response)
Determines if the response should be cached.
|
protected boolean |
Cache.isDynamicContent(WebResponse response)
Tries to guess if the content is dynamic or not.
|
protected boolean |
Cache.isJavaScript(WebResponse webResponse)
Indicates if the provided response is JavaScript content.
|
Page |
WebClient.loadWebResponseInto(WebResponse webResponse,
WebWindow webWindow)
Use the specified WebResponse to create a Page object which will then
get inserted into the WebWindow.
|
protected Date |
Cache.parseDateHeader(WebResponse response,
String headerName)
Parses and returns the specified date header of the specified response.
|
void |
WebClient.printContentIfNecessary(WebResponse webResponse)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
void |
WebClient.throwFailingHttpStatusCodeExceptionIfNecessary(WebResponse webResponse)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
Constructor and Description |
---|
FailingHttpStatusCodeException(WebResponse failingResponse)
Creates an instance.
|
JavaScriptPage(WebResponse webResponse,
WebWindow enclosingWindow)
Create an instance
|
SgmlPage(WebResponse webResponse,
WebWindow webWindow)
Create an instance of SgmlPage
|
TextPage(WebResponse webResponse,
WebWindow enclosingWindow)
Create an instance
|
UnexpectedPage(WebResponse webResponse,
WebWindow enclosingWindow)
Create an instance
|
Modifier and Type | Method and Description |
---|---|
static HtmlPage |
HTMLParser.parse(WebResponse webResponse,
WebWindow webWindow)
parse the HTML content from the given WebResponse into an object tree representation
|
Constructor and Description |
---|
HtmlPage(URL originatingUrl,
WebResponse webResponse,
WebWindow webWindow)
Create an instance of HtmlPage
|
Modifier and Type | Method and Description |
---|---|
void |
JavaScriptEngine.cacheScript(WebResponse webResponse,
org.mozilla.javascript.Script script)
Cache a parsed script
|
org.mozilla.javascript.Script |
JavaScriptEngine.getCachedScript(WebResponse webResponse)
Get the cached script for the given response.
|
Modifier and Type | Class and Description |
---|---|
class |
WebResponseWrapper
Provides a convenient implementation of the
WebResponse interface that can be subclassed
by developers wishing to adapt a particular WebResponse. |
Modifier and Type | Method and Description |
---|---|
protected WebResponse |
FalsifyingWebConnection.deliverFromAlternateUrl(WebRequestSettings webRequestSettings,
URL url)
Delivers the content for an alternate url as if it would come from the requested one
|
WebResponse |
WebConnectionWrapper.getResponse(WebRequestSettings webRequestSettings)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Submits a request and retrieves a response. |
WebResponse |
DebuggingWebConnection.getResponse(WebRequestSettings webRequestSettings)
Calls the wrapped webconnection and save the received response.
|
protected WebResponse |
FalsifyingWebConnection.replaceContent(WebResponse webResponse,
String newContent)
Builds a WebResponse with a new content preserving the other informations
|
Modifier and Type | Method and Description |
---|---|
protected WebResponse |
FalsifyingWebConnection.replaceContent(WebResponse webResponse,
String newContent)
Builds a WebResponse with a new content preserving the other informations
|
protected void |
DebuggingWebConnection.saveResponse(WebResponse response,
WebRequestSettings settings)
Save the response content in the temp dir and add it to the summary page
|
Constructor and Description |
---|
WebResponseWrapper(WebResponse webResponse)
Constructs a WebResponse object wrapping provided WebResponse.
|
Modifier and Type | Method and Description |
---|---|
static Document |
XmlUtil.buildDocument(WebResponse webResponse)
Builds a document from the content of the webresponse.
|
Constructor and Description |
---|
XmlPage(WebResponse webResponse,
WebWindow enclosingWindow)
Create an instance.
|
XmlPage(WebResponse webResponse,
WebWindow enclosingWindow,
boolean ignoreSAXException)
Create an instance.
|
Copyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.