Extension of
WebConnectionWrapper providing facility methods to deliver something else than
what the wrapped connection would deliver.
version: $Revision: 2132 $ author: Marc Guillemot
Constructs a WebConnection object wrapping provided WebConnection.
Parameters: webConnection - the webConnection that does the real work throws: IllegalArgumentException - if the connection is null
Constructs an instance and places itself as connection of the WebClient.
Parameters: webClient - the WebClient which WebConnection should be wrapped throws: IllegalArgumentException - if the WebClient is null
Delivers the content for an alternate url as if it would come from the requested one
Parameters: webRequestSettings - the original web request settings Parameters: url - the url from which the content should be retrieved the response throws: IOException - if a problem occurred
Builds a WebResponse with a new content preserving the other informations
Parameters: webResponse - the web response to adapt Parameters: newContent - the new content to place in the response a web response with the new content throws: IOException - if an encoding problem occurred
Methods inherited from com.gargoylesoftware.htmlunit.util.WebConnectionWrapper