com.gargoylesoftware.htmlunit
Class HttpWebConnection

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.WebConnectionImpl
      extended by com.gargoylesoftware.htmlunit.HttpWebConnection
All Implemented Interfaces:
WebConnection

public class HttpWebConnection
extends WebConnectionImpl

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, Noboru Sinohara, David D. Kilzer, Marc Guillemot, Brad Clarke, Ahmed Ashour

Constructor Summary
HttpWebConnection(WebClient webClient)
 Create a new HTTP web connection instance.
 
Method Summary
 WebResponse getResponse(WebRequestSettings webRequestSettings)
 Submit a request and retrieve a response
 org.apache.commons.httpclient.HttpState getState()
 Return the HttpState that is being used.
 java.lang.String getVirtualHost()
 Get the virtual host
 void setVirtualHost(java.lang.String virtualHost)
 set the virtual host
 
Methods inherited from class com.gargoylesoftware.htmlunit.WebConnectionImpl
getWebClient
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpWebConnection

public HttpWebConnection(WebClient webClient)
Create a new HTTP web connection instance.

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

getResponse

public WebResponse getResponse(WebRequestSettings webRequestSettings)
                        throws java.io.IOException
Submit a request and retrieve a response

Specified by:
getResponse in interface WebConnection
Specified by:
getResponse in class WebConnectionImpl
Parameters:
webRequestSettings - Settings to make the request with
Returns:
See above
Throws:
java.io.IOException - If an IO error occurs

getState

public org.apache.commons.httpclient.HttpState getState()
Return the HttpState that is being used.

Specified by:
getState in interface WebConnection
Specified by:
getState in class WebConnectionImpl
Returns:
The state.

getVirtualHost

public java.lang.String getVirtualHost()
Get the virtual host

Returns:
virtualHost The current virtualHost

setVirtualHost

public void setVirtualHost(java.lang.String virtualHost)
set the virtual host

Parameters:
virtualHost - The virtualHost to set.


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