Uses of Class
org.htmlunit.WebRequest
-
Packages that use WebRequest Package Description org.htmlunit Framework classes (contains theWebClient
class which is the main entry point).org.htmlunit.html Classes specific to HTML pages, particularly theHtmlPage
which represents an HTML document and provides access to its content.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.file Implementations of the File 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.util Miscellaneous utilities. -
-
Uses of WebRequest in org.htmlunit
Fields in org.htmlunit declared as WebRequest Modifier and Type Field Description private WebRequest
MockWebConnection. lastRequest_
private WebRequest
WebClient.LoadJob. request_
private WebRequest
WebResponse. request_
private WebRequest
WebResponseFromCache. request_
private WebRequest
History.HistoryEntry. webRequest_
Methods in org.htmlunit that return WebRequest Modifier and Type Method Description private static WebRequest
StringWebResponse. buildWebRequest(java.net.URL originatingURL, java.nio.charset.Charset charset)
WebRequest
MockWebConnection. getLastWebRequest()
Returns theWebRequest
that was used in the in the last call toMockWebConnection.getResponse(WebRequest)
.(package private) WebRequest
History.HistoryEntry. getWebRequest()
WebRequest
WebResponse. getWebRequest()
Returns the request used to load this response.WebRequest
WebResponseFromCache. getWebRequest()
Returns the request used to load this response.static WebRequest
WebRequest. newAboutBlankRequest()
Methods in org.htmlunit with parameters of type WebRequest Modifier and Type Method Description private void
WebClient. addDefaultHeaders(WebRequest wrs)
Adds the headers that are sent with every request to the specifiedWebRequest
instance.boolean
Cache. cacheIfPossible(WebRequest request, WebResponse response, java.lang.Object toCache)
Caches the specified object, if the corresponding request and response objects indicate that it is cacheable.private void
HttpWebConnection. configureHttpProcessorBuilder(org.apache.http.impl.client.HttpClientBuilder builder, WebRequest webRequest)
void
WebClient. download(WebWindow requestingWindow, java.lang.String target, WebRequest request, boolean checkHash, boolean forceLoad, boolean forceAttachment, java.lang.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 WebResponse
HttpWebConnection. downloadResponse(org.apache.http.client.methods.HttpUriRequest httpMethod, WebRequest webRequest, org.apache.http.HttpResponse httpResponse, long startTime)
Downloads the response.java.lang.Object
Cache. getCachedObject(WebRequest request)
Returns the cached object corresponding to the specified request.WebResponse
Cache. getCachedResponse(WebRequest request)
Returns the cached response corresponding to the specified request.private Cache.Entry
Cache. getCacheEntry(WebRequest request)
private java.util.List<org.apache.http.HttpRequestInterceptor>
HttpWebConnection. getHttpRequestInterceptors(WebRequest webRequest)
<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.(package private) <P extends Page>
PWebClient. getPage(WebWindow webWindow, WebRequest webRequest, boolean addToHistory)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Send a request to a server and return a Page that represents the response from the server.MockWebConnection.RawResponseData
MockWebConnection. getRawResponse(WebRequest request)
Gets the raw response configured for the request.WebResponse
HttpWebConnection. getResponse(WebRequest webRequest)
Submits a request and retrieves a response.WebResponse
MockWebConnection. getResponse(WebRequest request)
Submits a request and retrieves a response.WebResponse
WebConnection. getResponse(WebRequest request)
Submits a request and retrieves a response.protected int
HttpWebConnection. getTimeout(WebRequest webRequest)
Returns the timeout to use for socket and connection timeouts for HttpConnectionManager.private WebResponse
WebClient. getWebResponseOrUseCached(WebRequest webRequest, WebResponse cached)
Returns the cached response provided for the request if usable otherwise makes the request and returns the response.protected boolean
Cache. isCacheable(WebRequest request, WebResponse response)
Determines if the specified response can be cached.WebResponse
WebClient. loadWebResponse(WebRequest webRequest)
Loads aWebResponse
from the server.private WebResponse
WebClient. loadWebResponseFromWebConnection(WebRequest webRequest, int allowedRedirects)
Loads aWebResponse
from the server through the WebConnection.private org.apache.http.client.methods.HttpUriRequest
HttpWebConnection. makeHttpMethod(WebRequest webRequest, org.apache.http.impl.client.HttpClientBuilder httpClientBuilder)
Creates anHttpMethod
instance according to the specified parameters.protected WebResponse
HttpWebConnection. makeWebResponse(org.apache.http.HttpResponse httpResponse, WebRequest webRequest, DownloadedContent responseBody, long loadTime)
Converts an HttpMethod into aWebResponse
.private static WebResponse
WebClient. makeWebResponseForAboutUrl(WebRequest webRequest)
private WebResponse
WebClient. makeWebResponseForBlobUrl(WebRequest webRequest)
private WebResponse
WebClient. makeWebResponseForDataUrl(WebRequest webRequest)
private WebResponse
WebClient. makeWebResponseForFileUrl(WebRequest webRequest)
Builds a WebResponse for a file URL.protected WebResponse
HttpWebConnection. newWebResponseInstance(WebResponseData responseData, long loadTime, WebRequest webRequest)
Constructs an appropriate WebResponse.boolean
AjaxController. processSynchron(HtmlPage page, WebRequest request, boolean async)
Gets notified of an AJAX call to determine how it should be processed.boolean
NicelyResynchronizingAjaxController. processSynchron(HtmlPage page, WebRequest settings, boolean async)
Resynchronizes calls performed from the thread where this instance has been created.private org.apache.http.impl.client.HttpClientBuilder
HttpWebConnection. reconfigureHttpClientIfNeeded(org.apache.http.impl.client.HttpClientBuilder httpClientBuilder, WebRequest webRequest)
React on changes that may have occurred on the WebClient settings.private void
HttpWebConnection. setProxy(org.apache.http.client.methods.HttpRequestBase httpRequest, WebRequest webRequest)
Constructors in org.htmlunit with parameters of type WebRequest Constructor Description LoadJob(WebRequest request, WebResponse response, WebWindow requestingWindow, java.lang.String target, boolean forceAttachment)
WebResponse(WebResponseData responseData, WebRequest request, long loadTime)
Constructs with all data.WebResponseFromCache(WebResponse cachedResponse, java.util.List<NameValuePair> overwriteHeaders, WebRequest currentRequest)
Wraps the provided cached response for a new request.WebResponseFromCache(WebResponse cachedResponse, WebRequest currentRequest)
Wraps the provided response for the given request -
Uses of WebRequest in org.htmlunit.html
Methods in org.htmlunit.html that return WebRequest Modifier and Type Method Description WebRequest
HtmlForm. 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.WebRequest
HtmlLink. getWebRequest()
Returns the request which will allow us to retrieve the content referenced by thehref
attribute.Methods in org.htmlunit.html with parameters of type WebRequest Modifier and Type Method Description WebResponse
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. -
Uses of WebRequest in org.htmlunit.javascript.host
Methods in org.htmlunit.javascript.host with parameters of type WebRequest Modifier and Type Method Description void
URLSearchParams. 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 WebRequest Modifier and Type Method Description void
Blob. fillRequest(WebRequest webRequest)
Sets the specified request with the parameters in thisFormData
. -
Uses of WebRequest in org.htmlunit.javascript.host.xml
Fields in org.htmlunit.javascript.host.xml declared as WebRequest Modifier and Type Field Description private WebRequest
XMLHttpRequest.NetworkErrorWebResponse. request_
private WebRequest
XMLHttpRequest. webRequest_
Methods in org.htmlunit.javascript.host.xml that return WebRequest Modifier and Type Method Description WebRequest
XMLHttpRequest.NetworkErrorWebResponse. getWebRequest()
Methods in org.htmlunit.javascript.host.xml with parameters of type WebRequest Modifier and Type Method Description void
FormData. fillRequest(WebRequest webRequest)
Sets the specified request with the parameters in thisFormData
.Constructors in org.htmlunit.javascript.host.xml with parameters of type WebRequest Constructor Description NetworkErrorWebResponse(WebRequest webRequest, java.io.IOException error)
-
Uses of WebRequest in org.htmlunit.util
Methods in org.htmlunit.util that return WebRequest Modifier and Type Method Description WebRequest
WebResponseWrapper. getWebRequest()
Returns the request used to load this response.Methods in org.htmlunit.util with parameters of type WebRequest Modifier and Type Method Description protected WebResponse
FalsifyingWebConnection. createWebResponse(WebRequest wr, java.lang.String content, java.lang.String contentType)
Creates a faked WebResponse for the request with the provided content.protected WebResponse
FalsifyingWebConnection. createWebResponse(WebRequest wr, java.lang.String content, java.lang.String contentType, int responseCode, java.lang.String responseMessage)
Creates a faked WebResponse for the request with the provided content.protected WebResponse
FalsifyingWebConnection. deliverFromAlternateUrl(WebRequest webRequest, java.net.URL url)
Delivers the content for an alternate URL as if it comes from the requested URL.WebResponse
DebuggingWebConnection. getResponse(WebRequest request)
Calls the wrapped webconnection and save the received response.WebResponse
WebConnectionWrapper. getResponse(WebRequest request)
Submits a request and retrieves a response.protected void
DebuggingWebConnection. saveResponse(WebResponse response, WebRequest request)
Saves the response content in the temp dir and adds it to the summary page.
-