com.gargoylesoftware.htmlunit
Class WebConnectionImpl

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.WebConnectionImpl
All Implemented Interfaces:
WebConnection
Direct Known Subclasses:
HttpWebConnection, MockWebConnection

public abstract class WebConnectionImpl
extends java.lang.Object
implements 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

Constructor Summary
WebConnectionImpl(WebClient webClient)
 INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
 
Method Summary
abstract  WebResponse getResponse(WebRequestSettings webRequestSettings)
 INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
abstract  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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebConnectionImpl

public WebConnectionImpl(WebClient webClient)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Creates a new web connection instance.

Parameters:
webClient - The WebClient that is using this connection.
Method Detail

getResponse

public abstract 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.

Specified by:
getResponse in interface WebConnection
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

public abstract 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.

Specified by:
getState in interface WebConnection
Returns:
the state.

getWebClient

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

Specified by:
getWebClient in interface WebConnection
Returns:
The web client.


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