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 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: 2132 $
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.
Creates a new web connection instance.
 
Method Summary
abstract  WebResponse getResponse(WebRequestSettings webRequestSettings)
          INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Submits a request and retrieves a response.
abstract  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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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 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:
IOException - If an IO error occurs.

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.

getState

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


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