com.gargoylesoftware.htmlunit
Interface WebConnection

All Known Implementing Classes:
DebuggingWebConnection, FalsifyingWebConnection, HttpWebConnection, MockWebConnection, WebConnectionImpl, WebConnectionWrapper

public interface WebConnection

INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
An object that handles the actual communication portion of page retrieval/submission.

Version:
$Revision: 2132 $
Author:
Mike Bowler, Daniel Gredler, Marc Guillemot

Method Summary
 WebResponse getResponse(WebRequestSettings webRequestSettings)
          INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Submits a request and retrieves a response.
 HttpState getState()
          INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Return the HttpState that is being used.
 WebClient getWebClient()
          INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Return the web client.
 

Method Detail

getResponse

WebResponse getResponse(WebRequestSettings webRequestSettings)
                        throws IOException
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Submits a request and retrieves a response.

Parameters:
webRequestSettings - Settings to make the request with.
Returns:
The response to the request defined by the specified request settings.
Throws:
IOException - If an IO error occurs.

getWebClient

WebClient getWebClient()
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Return the web client.

Returns:
The web client.

getState

HttpState getState()
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Return the HttpState that is being used.

Returns:
the state.


Copyright © 2002-2010 Gargoyle Software Inc.. All Rights Reserved.