| java.lang.Object com.gargoylesoftware.htmlunit.WebConnectionImpl com.gargoylesoftware.htmlunit.HttpWebConnection
HttpWebConnection | public class HttpWebConnection extends WebConnectionImpl (Code) | | 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: 2168 $ author: Mike Bowler author: Noboru Sinohara author: David D. Kilzer author: Marc Guillemot author: Brad Clarke author: Ahmed Ashour |
HttpWebConnection | public HttpWebConnection(WebClient webClient)(Code) | | Create a new HTTP web connection instance.
Parameters: webClient - The WebClient that is using this connection |
createHttpClient | protected HttpClient createHttpClient()(Code) | | Creates the httpClient that will be used by this WebConnection.
Extensions may override this method to create the HttpClient with for instance a custom
org.apache.commons.httpclient.HttpConnectionManager to perform some tracking
(see feature request 1438216).
the client |
getHttpClient | protected synchronized HttpClient getHttpClient()(Code) | | Lazily initialize the httpClient
the initialized client |
getLog | final protected Log getLog()(Code) | | Return the log object for this class
The log object |
getState | public HttpState getState()(Code) | | Return the
HttpState that is being used.
The state. |
getTimeout | protected int getTimeout()(Code) | | Return the timeout to use for socket and connection timeouts for HttpConnectionManager.
is overridden to 0 by StreamingWebConnection which keeps reading after a timeout and
must have long running connections explicitly terminated.
the WebClient's timeout. |
getVirtualHost | public String getVirtualHost()(Code) | | Get the virtual host
virtualHost The current virtualHost |
newWebResponseDataInstance | protected WebResponseData newWebResponseDataInstance(String statusMessage, List headers, int statusCode, HttpMethodBase method) throws IOException(Code) | | Construct an appropriate WebResponseData.
May be overridden by subclasses to return a specialized WebResponseData.
Parameters: statusMessage - StatusMessage from the response Parameters: headers - response headers Parameters: statusCode - response status code Parameters: method - request method The WebResponseData to use for this response. throws: IOException - if there is a problem reading the response body. |
newWebResponseInstance | protected WebResponse newWebResponseInstance(String charset, WebResponseData responseData, long loadTime, SubmitMethod requestMethod, URL originatingURL)(Code) | | Construct an appropriate WebResponse.
May be overridden by subclasses to return a specialized WebResponse.
Parameters: responseData - Data that was send back Parameters: charset - Charset used if not returned in the response. Parameters: originatingURL - Where this response came from Parameters: requestMethod - The method used to get this response Parameters: loadTime - How long the response took to be sent the new WebResponse. |
onResponseGenerated | protected void onResponseGenerated(HttpMethodBase httpMethod)(Code) | | Called when the response has been generated. Default action is to release
the HttpMethod's connection. Subclasses may override.
Parameters: httpMethod - the httpMethod used. |
setVirtualHost | public void setVirtualHost(String virtualHost)(Code) | | set the virtual host
Parameters: virtualHost - The virtualHost to set. |
|
|