com.gargoylesoftware.htmlunit
Interface WebConnection

All Known Implementing Classes:
DebuggingWebConnection, 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: 1.3 $
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.
 org.apache.commons.httpclient.HttpState getState()
 INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
 WebClient getWebClient()
 INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
 

Method Detail

getResponse

WebResponse getResponse(WebRequestSettings webRequestSettings)
                        throws java.io.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:
java.io.IOException - If an IO error occurs.

getState

org.apache.commons.httpclient.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.

getWebClient

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

Returns:
The web client.


Copyright © 2003-2016 AppPerfect Corporation. All Rights Reserved.