# Uses of Interface
org.htmlunit.WebConnection

Packages that use WebConnection
Package
Description
org.htmlunit
Framework classes (contains the `WebClient` class which is the main entry point).
org.htmlunit.util
Miscellaneous utilities.

- ## Uses of WebConnection in org.htmlunit

  Classes in org.htmlunit that implement WebConnection
  Modifier and Type
  Class
  Description
  `class`
  `HttpWebConnection`
  Default implementation of `WebConnection`, using the HttpClient library to perform HTTP requests.
  `class`
  `MockWebConnection`
  A fake `WebConnection` designed to mock out the actual HTTP connections.
  Methods in org.htmlunit that return WebConnection
  Modifier and Type
  Method
  Description
  `WebConnection`
  WebClient.`getWebConnection()`
  Returns the object that will resolve all URL requests.
  Methods in org.htmlunit with parameters of type WebConnection
  Modifier and Type
  Method
  Description
  `void`
  WebClient.`setWebConnection(WebConnection webConnection)`
  Sets the object that will resolve all URL requests.

- ## Uses of WebConnection in org.htmlunit.util

  Classes in org.htmlunit.util that implement WebConnection
  Modifier and Type
  Class
  Description
  `class`
  `DebuggingWebConnection`
  Wrapper around a "real" WebConnection that will use the wrapped web connection to do the real job and save all received responses in the temp directory with an overview page.
  This may be useful at conception time to understand what is "browsed".
  Example:
  `class`
  `FalsifyingWebConnection`
  Extension of `WebConnectionWrapper` providing facility methods to deliver something other than what the wrapped connection would deliver.
  `class`
  `WebConnectionWrapper`
  Provides a convenient implementation of the `WebConnection` interface that can be subclassed by developers wishing to adapt a particular WebConnection.
  Methods in org.htmlunit.util that return WebConnection
  Modifier and Type
  Method
  Description
  `WebConnection`
  WebConnectionWrapper.`getWrappedWebConnection()`
  Gets the wrapped `WebConnection`.
  Constructors in org.htmlunit.util with parameters of type WebConnection
  Modifier
  Constructor
  Description
  ``
  `DebuggingWebConnection(WebConnection webConnection, String dirName)`
  Wraps a web connection to have a report generated of the received responses.
  ``
  `FalsifyingWebConnection(WebConnection webConnection)`
  Constructs a WebConnection object wrapping provided WebConnection.
  ``
  `WebConnectionWrapper(WebConnection webConnection)`
  Constructs a WebConnection object wrapping provided WebConnection.