Uses of Class
org.htmlunit.WebResponse
Packages that use WebResponse
Package
Description
Framework classes (contains the
WebClient
class which is the main entry point).Attachment-related classes.
Classes specific to HTML pages, particularly the
HtmlPage which represents
an HTML document and provides access to its content.Contains the html parser interface.
Contains the neko html parser.
Implementations of the XML JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
Miscellaneous utilities.
Miscellaneous utilities.
Classes specific to XML pages.
-
Uses of WebResponse in org.htmlunit
Subclasses of WebResponse in org.htmlunitModifier and TypeClassDescriptionclassA simple WebResponse created from a string.(package private) classAWebResponseimplementation to deliver with content from cache.Fields in org.htmlunit declared as WebResponseModifier and TypeFieldDescriptionprivate final WebResponseCache.Entry.response_private final WebResponseFailingHttpStatusCodeException.response_private final WebResponseWebClient.LoadJob.response_private final WebResponseAbstractPage.webResponse_private final WebResponseSgmlPage.webResponse_Methods in org.htmlunit that return WebResponseModifier and TypeMethodDescriptionprotected WebResponseHttpWebConnection.downloadResponse(org.apache.http.client.methods.HttpUriRequest httpMethod, WebRequest webRequest, org.apache.http.HttpResponse httpResponse, long startTime) Downloads the response.Cache.getCachedResponse(WebRequest request) Returns the cached response corresponding to the specified request.FailingHttpStatusCodeException.getResponse()Gets the failing response.HttpWebConnection.getResponse(WebRequest webRequest) Submits a request and retrieves a response.MockWebConnection.getResponse(WebRequest request) Submits a request and retrieves a response.WebConnection.getResponse(WebRequest request) Submits a request and retrieves a response.AbstractPage.getWebResponse()Returns the web response that was originally used to create this page.Page.getWebResponse()Returns the web response that was originally used to create this page.SgmlPage.getWebResponse()Returns the web response that was originally used to create this page.private WebResponseWebClient.getWebResponseOrUseCached(WebRequest webRequest, WebResponse cached) Returns the cached response provided for the request if usable otherwise makes the request and returns the response.WebClient.loadWebResponse(WebRequest webRequest) Loads aWebResponsefrom the server.private WebResponseWebClient.loadWebResponseFromWebConnection(WebRequest webRequest, int allowedRedirects) Loads aWebResponsefrom the server through the WebConnection.protected WebResponseHttpWebConnection.makeWebResponse(org.apache.http.HttpResponse httpResponse, WebRequest webRequest, DownloadedContent responseBody, long loadTime) Converts an HttpMethod into aWebResponse.private static WebResponseWebClient.makeWebResponseForAboutUrl(WebRequest webRequest) private WebResponseWebClient.makeWebResponseForBlobUrl(WebRequest webRequest) private WebResponseWebClient.makeWebResponseForDataUrl(WebRequest webRequest) private WebResponseWebClient.makeWebResponseForFileUrl(WebRequest webRequest) Builds a WebResponse for a file URL.private WebResponseWebClient.makeWebResponseForJavaScriptUrl(WebWindow webWindow, URL url, Charset charset) protected WebResponseHttpWebConnection.newWebResponseInstance(WebResponseData responseData, long loadTime, WebRequest webRequest) Constructs an appropriate WebResponse.Methods in org.htmlunit with parameters of type WebResponseModifier and TypeMethodDescriptionprivate static StringFailingHttpStatusCodeException.buildMessage(WebResponse failingResponse) booleanCache.cacheIfPossible(WebRequest request, WebResponse response, Object toCache) Caches the specified object, if the corresponding request and response objects indicate that it is cacheable.protected HtmlPageDefaultPageCreator.createHtmlPage(WebResponse webResponse, WebWindow webWindow) Creates an HtmlPage for this WebResponse.DefaultPageCreator.createPage(WebResponse webResponse, WebWindow webWindow) Create a Page object for the specified web response.PageCreator.createPage(WebResponse webResponse, WebWindow webWindow) Create a Page object for the specified web response.protected TextPageDefaultPageCreator.createTextPage(WebResponse webResponse, WebWindow webWindow) Creates a TextPage for this WebResponse.protected UnexpectedPageDefaultPageCreator.createUnexpectedPage(WebResponse webResponse, WebWindow webWindow) Creates an UnexpectedPage for this WebResponse.protected XHtmlPageDefaultPageCreator.createXHtmlPage(WebResponse webResponse, WebWindow webWindow) Creates an XHtmlPage for this WebResponse.protected SgmlPageDefaultPageCreator.createXmlPage(WebResponse webResponse, WebWindow webWindow) Creates an SgmlPage for this WebResponse.static DefaultPageCreator.PageTypeDefaultPageCreator.determinePageType(WebResponse webResponse) Determines the kind of page to create from the content type.private WebResponseWebClient.getWebResponseOrUseCached(WebRequest webRequest, WebResponse cached) Returns the cached response provided for the request if usable otherwise makes the request and returns the response.protected booleanCache.isCacheable(WebRequest request, WebResponse response) Determines if the specified response can be cached.protected booleanCache.isCacheableContent(WebResponse response) Perform prior validation for 'no-store' directive in Cache-Control header.(package private) static booleanCache.isWithinCacheWindow(WebResponse response, long now, long createdAt) Find expiry time using a) s-maxage specified
b) max-age specified
c) expired specified
d) A Last-Update is specified and the time is now within 10% of the difference between download time and update timeWebClient.loadWebResponseInto(WebResponse webResponse, WebWindow webWindow) Creates a page based on the specified response and inserts it into the specified window.WebClient.loadWebResponseInto(WebResponse webResponse, WebWindow webWindow, boolean forceAttachment) INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.protected static DateCache.parseDateHeader(WebResponse response, String headerName) Parses and returns the specified date header of the specified response.voidWebClient.printContentIfNecessary(WebResponse webResponse) INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.voidWebClient.throwFailingHttpStatusCodeExceptionIfNecessary(WebResponse webResponse) INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.Constructors in org.htmlunit with parameters of type WebResponseModifierConstructorDescriptionAbstractPage(WebResponse webResponse, WebWindow enclosingWindow) Creates an instance.(package private)Entry(String key, WebResponse response, Object value) FailingHttpStatusCodeException(String message, WebResponse failingResponse) Creates an instance.FailingHttpStatusCodeException(WebResponse failingResponse) Creates an instance.(package private)LoadJob(WebRequest request, WebResponse response, WebWindow requestingWindow, String target, boolean forceAttachment) 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.(package private)WebResponseFromCache(WebResponse cachedResponse, List<NameValuePair> overwriteHeaders, WebRequest currentRequest) Wraps the provided cached response for a new request.(package private)WebResponseFromCache(WebResponse cachedResponse, WebRequest currentRequest) Wraps the provided response for the given request -
Uses of WebResponse in org.htmlunit.attachment
Methods in org.htmlunit.attachment with parameters of type WebResponseModifier and TypeMethodDescriptiondefault booleanAttachmentHandler.handleAttachment(WebResponse response) Process the specified attachment.default booleanAttachmentHandler.isAttachment(WebResponse response) Returnstrueif the specified response represents an attachment. -
Uses of WebResponse in org.htmlunit.html
Fields in org.htmlunit.html declared as WebResponseModifier and TypeFieldDescriptionprivate WebResponseHtmlImage.imageWebResponse_private WebResponseHtmlImageInput.imageWebResponse_Methods in org.htmlunit.html that return WebResponseModifier and TypeMethodDescriptionHtmlImage.getWebResponse(boolean downloadIfNeeded) Returns theWebResponsefor the image contained by this image element.HtmlLink.getWebResponse(boolean downloadIfNeeded) POTENIAL PERFORMANCE KILLER - DOWNLOADS THE RESOURCE - USE AT YOUR OWN RISK.
If the linked content is not already downloaded it triggers a download.HtmlLink.getWebResponse(boolean downloadIfNeeded, WebRequest request) INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
If the linked content is not already downloaded it triggers a download.Methods in org.htmlunit.html with parameters of type WebResponseModifier and TypeMethodDescriptionprivate static StringXmlSerializer.getSuffix(WebResponse response) Constructors in org.htmlunit.html with parameters of type WebResponseModifierConstructorDescriptionHtmlPage(WebResponse webResponse, WebWindow webWindow) Creates an instance of HtmlPage.XHtmlPage(WebResponse webResponse, WebWindow webWindow) Creates a new XHTML page instance. -
Uses of WebResponse in org.htmlunit.html.parser
Methods in org.htmlunit.html.parser with parameters of type WebResponseModifier and TypeMethodDescriptionvoidHTMLParser.parse(WebResponse webResponse, HtmlPage page, boolean xhtml, boolean createdByJavascript) Parses the WebResponse into an object tree representation. -
Uses of WebResponse in org.htmlunit.html.parser.neko
Methods in org.htmlunit.html.parser.neko with parameters of type WebResponseModifier and TypeMethodDescriptionvoidHtmlUnitNekoHtmlParser.parse(WebResponse webResponse, HtmlPage page, boolean xhtml, boolean createdByJavascript) Parses the WebResponse into an object tree representation. -
Uses of WebResponse in org.htmlunit.javascript.host.xml
Subclasses of WebResponse in org.htmlunit.javascript.host.xmlModifier and TypeClassDescriptionprivate static final classFields in org.htmlunit.javascript.host.xml declared as WebResponseMethods in org.htmlunit.javascript.host.xml with parameters of type WebResponseModifier and TypeMethodDescriptionprivate booleanXMLHttpRequest.isPreflightAuthorized(WebResponse preflightResponse) -
Uses of WebResponse in org.htmlunit.util
Subclasses of WebResponse in org.htmlunit.utilModifier and TypeClassDescriptionclassProvides a convenient implementation of theWebResponseinterface that can be subclassed by developers wishing to adapt a particular WebResponse.Fields in org.htmlunit.util declared as WebResponseModifier and TypeFieldDescriptionprivate final WebResponseWebResponseWrapper.wrappedWebResponse_Methods in org.htmlunit.util that return WebResponseModifier and TypeMethodDescriptionprotected WebResponseFalsifyingWebConnection.createWebResponse(WebRequest wr, String content, String contentType) Creates a faked WebResponse for the request with the provided content.protected WebResponseFalsifyingWebConnection.createWebResponse(WebRequest wr, String content, String contentType, int responseCode, String responseMessage) Creates a faked WebResponse for the request with the provided content.protected WebResponseFalsifyingWebConnection.deliverFromAlternateUrl(WebRequest webRequest, URL url) Delivers the content for an alternate URL as if it comes from the requested URL.DebuggingWebConnection.getResponse(WebRequest request) Calls the wrapped webconnection and save the received response.WebConnectionWrapper.getResponse(WebRequest request) Submits a request and retrieves a response.protected WebResponseFalsifyingWebConnection.replaceContent(WebResponse wr, String newContent) Builds a WebResponse with new content, preserving all other information.protected WebResponseDebuggingWebConnection.uncompressJavaScript(WebResponse response) Tries to uncompress the JavaScript code in the provided response.Methods in org.htmlunit.util with parameters of type WebResponseModifier and TypeMethodDescriptionstatic DocumentXmlUtils.buildDocument(WebResponse webResponse) Builds a document from the content of the web response.private static booleanHeaderUtils.containsCacheControlValue(WebResponse response, String value) static booleanHeaderUtils.containsETag(WebResponse response) static booleanHeaderUtils.containsLastModified(WebResponse response) static booleanHeaderUtils.containsMaxAge(WebResponse response) static booleanHeaderUtils.containsMaxAgeOrSMaxage(WebResponse response) static booleanHeaderUtils.containsNoCache(WebResponse response) static booleanHeaderUtils.containsNoStore(WebResponse response) static booleanHeaderUtils.containsPrivate(WebResponse response) static booleanHeaderUtils.containsPublic(WebResponse response) static booleanHeaderUtils.containsSMaxage(WebResponse response) private static longHeaderUtils.directiveValue(WebResponse response, Pattern pattern) static longHeaderUtils.maxAge(WebResponse response) protected WebResponseFalsifyingWebConnection.replaceContent(WebResponse wr, String newContent) Builds a WebResponse with new content, preserving all other information.protected voidDebuggingWebConnection.saveResponse(WebResponse response, WebRequest request) Saves the response content in the temp dir and adds it to the summary page.static longHeaderUtils.sMaxage(WebResponse response) protected WebResponseDebuggingWebConnection.uncompressJavaScript(WebResponse response) Tries to uncompress the JavaScript code in the provided response.Constructors in org.htmlunit.util with parameters of type WebResponseModifierConstructorDescriptionWebResponseWrapper(WebResponse webResponse) Constructs a WebResponse object wrapping provided WebResponse. -
Uses of WebResponse in org.htmlunit.webstart
Methods in org.htmlunit.webstart with parameters of type WebResponseModifier and TypeMethodDescriptionvoidWebStartHandler.handleJnlpResponse(WebResponse webResponse) Handles the jnlp file response. -
Uses of WebResponse in org.htmlunit.xml
Constructors in org.htmlunit.xml with parameters of type WebResponseModifierConstructorDescriptionXmlPage(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.