Uses of Class
org.htmlunit.WebResponse
-
Packages that use WebResponse Package Description com.xceptance.xlt.api.engine Provides core classes as well as classes to represent the different data measured during a test.com.xceptance.xlt.api.htmlunit Provides classes that represent different page types.com.xceptance.xlt.api.util Provides various utility classes to make writing test cases easier.org.htmlunit Framework classes (contains theWebClientclass which is the main entry point).org.htmlunit.attachment Attachment-related classes.org.htmlunit.html Classes specific to HTML pages, particularly theHtmlPagewhich represents an HTML document and provides access to its content.org.htmlunit.util Miscellaneous utilities.org.htmlunit.xml Classes specific to XML pages. -
-
Uses of WebResponse in com.xceptance.xlt.api.engine
Methods in com.xceptance.xlt.api.engine that return WebResponse Modifier and Type Method Description WebResponseNetworkData. getResponse()Returns the underlying response object for direct access.Constructors in com.xceptance.xlt.api.engine with parameters of type WebResponse Constructor Description NetworkData(WebRequest request, WebResponse response)Constructor. -
Uses of WebResponse in com.xceptance.xlt.api.htmlunit
Methods in com.xceptance.xlt.api.htmlunit that return WebResponse Modifier and Type Method Description WebResponseLightWeightPage. getWebResponse()Returns the web response.Constructors in com.xceptance.xlt.api.htmlunit with parameters of type WebResponse Constructor Description LightWeightPage(WebResponse webResponse, java.lang.String timerName)Constructor. -
Uses of WebResponse in com.xceptance.xlt.api.util
Methods in com.xceptance.xlt.api.util that return WebResponse Modifier and Type Method Description protected WebResponseAbstractResponseProcessor. createWebResponse(WebResponse originalWebResponse, byte[] content)Creates a new web response from the given original web response and the new content.protected WebResponseAbstractResponseProcessor. createWebResponse(WebResponse originalWebResponse, java.lang.String content)Creates a new web response from the given original web response and the new content.WebResponseResponseContentProcessor. processResponse(WebResponse webResponse)Processes the content of a response.WebResponseResponseProcessor. processResponse(WebResponse webResponse)Processes the content of a response.Methods in com.xceptance.xlt.api.util with parameters of type WebResponse Modifier and Type Method Description protected WebResponseAbstractResponseProcessor. createWebResponse(WebResponse originalWebResponse, byte[] content)Creates a new web response from the given original web response and the new content.protected WebResponseAbstractResponseProcessor. createWebResponse(WebResponse originalWebResponse, java.lang.String content)Creates a new web response from the given original web response and the new content.WebResponseResponseContentProcessor. processResponse(WebResponse webResponse)Processes the content of a response.WebResponseResponseProcessor. processResponse(WebResponse webResponse)Processes the content of a response. -
Uses of WebResponse in org.htmlunit
Subclasses of WebResponse in org.htmlunit Modifier and Type Class Description classStringWebResponseA simple WebResponse created from a string.Methods in org.htmlunit that return WebResponse Modifier and Type Method Description WebResponseCache. getCachedResponse(WebRequest request)Returns the cached response corresponding to the specified request.WebResponseFailingHttpStatusCodeException. getResponse()Gets the failing response.WebResponseHttpWebConnection. getResponse(WebRequest webRequest)Submits a request and retrieves a response.WebResponseMockWebConnection. getResponse(WebRequest request)Submits a request and retrieves a response.WebResponseWebConnection. getResponse(WebRequest request)Submits a request and retrieves a response.WebResponseAbstractPage. getWebResponse()Returns the web response that was originally used to create this page.WebResponsePage. getWebResponse()Returns the web response that was originally used to create this page.WebResponseSgmlPage. getWebResponse()Returns the web response that was originally used to create this page.WebResponseWebClient. 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 a WebResponse.protected WebResponseHttpWebConnection. newWebResponseInstance(WebResponseData responseData, long loadTime, WebRequest webRequest)Constructs an appropriate WebResponse.Methods in org.htmlunit with parameters of type WebResponse Modifier and Type Method Description booleanCache. 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.protected HtmlPageDefaultPageCreator. createHtmlPage(WebResponse webResponse, WebWindow webWindow)Creates an HtmlPage for this WebResponse.PageDefaultPageCreator. createPage(WebResponse webResponse, WebWindow webWindow)Create a Page object for the specified web response.PagePageCreator. 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.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.PageWebClient. loadWebResponseInto(WebResponse webResponse, WebWindow webWindow)Creates a page based on the specified response and inserts it into the specified window.PageWebClient. loadWebResponseInto(WebResponse webResponse, WebWindow webWindow, boolean forceAttachment)INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.protected static java.util.DateCache. parseDateHeader(WebResponse response, java.lang.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 WebResponse Constructor Description AbstractPage(WebResponse webResponse, WebWindow enclosingWindow)Creates an instance.FailingHttpStatusCodeException(java.lang.String message, WebResponse failingResponse)Creates an instance.FailingHttpStatusCodeException(WebResponse failingResponse)Creates an instance.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. -
Uses of WebResponse in org.htmlunit.attachment
Methods in org.htmlunit.attachment with parameters of type WebResponse Modifier and Type Method Description default 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
Methods in org.htmlunit.html that return WebResponse Modifier and Type Method Description WebResponseHtmlImage. getWebResponse(boolean downloadIfNeeded)Returns theWebResponsefor the image contained by this image element.WebResponseHtmlLink. 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.WebResponseHtmlLink. 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.Constructors in org.htmlunit.html with parameters of type WebResponse Constructor Description HtmlPage(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.util
Subclasses of WebResponse in org.htmlunit.util Modifier and Type Class Description classWebResponseWrapperProvides a convenient implementation of theWebResponseinterface that can be subclassed by developers wishing to adapt a particular WebResponse.Methods in org.htmlunit.util that return WebResponse Modifier and Type Method Description protected WebResponseFalsifyingWebConnection. createWebResponse(WebRequest wr, java.lang.String content, java.lang.String contentType)Creates a faked WebResponse for the request with the provided content.protected WebResponseFalsifyingWebConnection. 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 WebResponseFalsifyingWebConnection. deliverFromAlternateUrl(WebRequest webRequest, java.net.URL url)Delivers the content for an alternate URL as if it comes from the requested URL.WebResponseDebuggingWebConnection. getResponse(WebRequest request)Calls the wrapped webconnection and save the received response.WebResponseWebConnectionWrapper. getResponse(WebRequest request)Submits a request and retrieves a response.protected WebResponseFalsifyingWebConnection. replaceContent(WebResponse wr, java.lang.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 WebResponse Modifier and Type Method Description static org.w3c.dom.DocumentXmlUtils. buildDocument(WebResponse webResponse)Builds a document from the content of the web response.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)static longHeaderUtils. maxAge(WebResponse response)protected WebResponseFalsifyingWebConnection. replaceContent(WebResponse wr, java.lang.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 WebResponse Constructor Description WebResponseWrapper(WebResponse webResponse)Constructs a WebResponse object wrapping provided WebResponse. -
Uses of WebResponse in org.htmlunit.xml
Constructors in org.htmlunit.xml with parameters of type WebResponse Constructor Description XmlPage(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.
-