Uses of Class
org.htmlunit.WebRequest
Packages that use WebRequest
Package
Description
Framework classes (contains the
WebClient
class which is the main entry point).Classes specific to HTML pages, particularly the
HtmlPage which represents
an HTML document and provides access to its content.Implementations of the various JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
Implementations of the File JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
Implementations of the XML JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
Miscellaneous utilities.
-
Uses of WebRequest in org.htmlunit
Methods in org.htmlunit that return WebRequestModifier and TypeMethodDescriptionMockWebConnection.getLastWebRequest()Returns theWebRequestthat was used in the in the last call toMockWebConnection.getResponse(WebRequest).WebResponse.getWebRequest()Returns the request used to load this response.static WebRequestWebRequest.newAboutBlankRequest()Methods in org.htmlunit with parameters of type WebRequestModifier and TypeMethodDescriptionbooleanCache.cacheIfPossible(WebRequest request, WebResponse response, Object toCache) Caches the specified object, if the corresponding request and response objects indicate that it is cacheable.voidWebClient.download(WebWindow requestingWindow, String target, WebRequest request, boolean checkHash, boolean forceLoad, boolean forceAttachment, String description) INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Perform the downloads and stores it for loading later into a window.protected WebResponseHttpWebConnection.downloadResponse(org.apache.http.client.methods.HttpUriRequest httpMethod, WebRequest webRequest, org.apache.http.HttpResponse httpResponse, long startTime) Downloads the response.Cache.getCachedObject(WebRequest request) Returns the cached object corresponding to the specified request.Cache.getCachedResponse(WebRequest request) Returns the cached response corresponding to the specified request.<P extends Page>
PWebClient.getPage(WebRequest request) Convenient method to load a web request into the current top WebWindow.<P extends Page>
PWebClient.getPage(WebWindow webWindow, WebRequest webRequest) Send a request to a server and return a Page that represents the response from the server.MockWebConnection.getRawResponse(WebRequest request) Gets the raw response configured for the request.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.protected intHttpWebConnection.getTimeout(WebRequest webRequest) Returns the timeout to use for socket and connection timeouts for HttpConnectionManager.protected booleanCache.isCacheable(WebRequest request, WebResponse response) Determines if the specified response can be cached.WebClient.loadWebResponse(WebRequest webRequest) Loads aWebResponsefrom the server.protected WebResponseHttpWebConnection.makeWebResponse(org.apache.http.HttpResponse httpResponse, WebRequest webRequest, DownloadedContent responseBody, long loadTime) Converts an HttpMethod into aWebResponse.protected WebResponseHttpWebConnection.newWebResponseInstance(WebResponseData responseData, long loadTime, WebRequest webRequest) Constructs an appropriate WebResponse.booleanAjaxController.processSynchron(HtmlPage page, WebRequest request, boolean async) Gets notified of an AJAX call to determine how it should be processed.booleanNicelyResynchronizingAjaxController.processSynchron(HtmlPage page, WebRequest settings, boolean async) Resynchronizes calls performed from the thread where this instance has been created.Constructors in org.htmlunit with parameters of type WebRequestModifierConstructorDescriptionWebResponse(WebResponseData responseData, WebRequest request, long loadTime) Constructs with all data. -
Uses of WebRequest in org.htmlunit.html
Methods in org.htmlunit.html that return WebRequestModifier and TypeMethodDescriptionHtmlForm.getWebRequest(SubmittableElement submitElement) INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Gets the request for a submission of this form with the specified SubmittableElement.HtmlLink.getWebRequest()Returns the request which will allow us to retrieve the content referenced by thehrefattribute.Methods in org.htmlunit.html with parameters of type WebRequestModifier and TypeMethodDescriptionHtmlLink.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. -
Uses of WebRequest in org.htmlunit.javascript.host
Methods in org.htmlunit.javascript.host with parameters of type WebRequestModifier and TypeMethodDescriptionvoidURLSearchParams.fillRequest(WebRequest webRequest) Sets the specified request with the parameters in thisFormData. -
Uses of WebRequest in org.htmlunit.javascript.host.file
Methods in org.htmlunit.javascript.host.file with parameters of type WebRequestModifier and TypeMethodDescriptionvoidBlob.fillRequest(WebRequest webRequest) Sets the specified request with the parameters in thisFormData. -
Uses of WebRequest in org.htmlunit.javascript.host.xml
Methods in org.htmlunit.javascript.host.xml with parameters of type WebRequestModifier and TypeMethodDescriptionvoidFormData.fillRequest(WebRequest webRequest) Sets the specified request with the parameters in thisFormData. -
Uses of WebRequest in org.htmlunit.util
Methods in org.htmlunit.util that return WebRequestModifier and TypeMethodDescriptionWebResponseWrapper.getWebRequest()Returns the request used to load this response.Methods in org.htmlunit.util with parameters of type WebRequestModifier 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 voidDebuggingWebConnection.saveResponse(WebResponse response, WebRequest request) Saves the response content in the temp dir and adds it to the summary page.