Uses of Class
org.apache.commons.httpclient.HttpConnection

Packages that use HttpConnection
org.apache.commons.httpclient Classes and interfaces supporting the client side of the HTTP protocol. 
org.apache.commons.httpclient.auth Provides implementation of various authentication schemes as well as utility classes that can be used to authenticate HTTP requests. 
org.apache.commons.httpclient.methods Classes implementing HttpMethod for the base HTTP methods. 
 

Uses of HttpConnection in org.apache.commons.httpclient
 

Methods in org.apache.commons.httpclient that return HttpConnection
 HttpConnection SimpleHttpConnectionManager.getConnection(HostConfiguration hostConfiguration)
           
 HttpConnection SimpleHttpConnectionManager.getConnection(HostConfiguration hostConfiguration, long timeout)
           
 HttpConnection HttpConnectionManager.getConnection(HostConfiguration hostConfiguration)
          Gets an HttpConnection for a given host configuration.
 HttpConnection HttpConnectionManager.getConnection(HostConfiguration hostConfiguration, long timeout)
          Gets an HttpConnection for a given host configuration.
 HttpConnection MultiThreadedHttpConnectionManager.getConnection(HostConfiguration hostConfiguration)
           
 HttpConnection MultiThreadedHttpConnectionManager.getConnection(HostConfiguration hostConfiguration, long timeout)
           
 

Methods in org.apache.commons.httpclient with parameters of type HttpConnection
 boolean DefaultMethodRetryHandler.retryMethod(HttpMethod method, HttpConnection connection, HttpRecoverableException recoverableException, int executionCount, boolean requestSent)
          Used retryCount and requestSentRetryEnabled to determine if the given method should be retried.
 int HttpMethod.execute(HttpState state, HttpConnection connection)
          Execute this method.
 boolean HostConfiguration.hostEquals(HttpConnection connection)
          Tests if the host configuration equals the configuraiton set on the connection.
 boolean HostConfiguration.proxyEquals(HttpConnection connection)
          Tests if the proxy configuration equals the configuraiton set on the connection.
 void SimpleHttpConnectionManager.releaseConnection(HttpConnection conn)
           
protected  boolean HttpMethodBase.shouldCloseConnection(HttpConnection conn)
          Return true if we should close the connection now.
 int HttpMethodBase.execute(HttpState state, HttpConnection conn)
          Execute this method.
protected  void HttpMethodBase.addAuthorizationRequestHeader(HttpState state, HttpConnection conn)
          Adds an Authorization request if needed, as long as no Authorization request header already exists.
protected  void HttpMethodBase.addContentLengthRequestHeader(HttpState state, HttpConnection conn)
          Adds a Content-Length or Transfer-Encoding: Chunked request header, as long as no Content-Length request header already exists.
protected  void HttpMethodBase.addCookieRequestHeader(HttpState state, HttpConnection conn)
          Adds a Cookie request containing the matching Cookies.
protected  void HttpMethodBase.addHostRequestHeader(HttpState state, HttpConnection conn)
          Adds a Host request header, as long as no Host request header already exists.
protected  void HttpMethodBase.addProxyAuthorizationRequestHeader(HttpState state, HttpConnection conn)
          Adds a Proxy-Authorization request if needed, as long as no Proxy-Authorization request header already exists.
protected  void HttpMethodBase.addProxyConnectionHeader(HttpState state, HttpConnection conn)
          Adds a Proxy-Connection: Keep-Alive request when communicating via a proxy server.
protected  void HttpMethodBase.addRequestHeaders(HttpState state, HttpConnection conn)
          Populates the request headers map to with additional headers to be submitted to the given HttpConnection.
protected  void HttpMethodBase.addUserAgentRequestHeader(HttpState state, HttpConnection conn)
          Adds a default User-Agent request header, as long as no User-Agent request header already exists.
protected static String HttpMethodBase.generateRequestLine(HttpConnection connection, String name, String requestPath, String query, String version)
          Generate an HTTP/S request line according to the specified attributes.
protected  void HttpMethodBase.processResponseBody(HttpState state, HttpConnection conn)
          When this method is invoked, readResponseBody(HttpState,HttpConnection) will have been invoked.
protected  void HttpMethodBase.processResponseHeaders(HttpState state, HttpConnection conn)
          When this method is invoked, the response headers map will have been populated with the response headers (in other words, readResponseHeaders(HttpState,HttpConnection) will have been invoked).
protected  void HttpMethodBase.processStatusLine(HttpState state, HttpConnection conn)
          When this method is invoked, the status code and status text values will have been set (in other words, readStatusLine(HttpState,HttpConnection will have been invoked).
protected  void HttpMethodBase.readResponse(HttpState state, HttpConnection conn)
          Reads the response from the given HttpConnection.
protected  void HttpMethodBase.readResponseBody(HttpState state, HttpConnection conn)
          Read the response body from the given HttpConnection.
protected  void HttpMethodBase.readResponseHeaders(HttpState state, HttpConnection conn)
          Read response headers from the given HttpConnection, populating the response headers map.
protected  void HttpMethodBase.readStatusLine(HttpState state, HttpConnection conn)
          Read the status line from the given HttpConnection, setting my status code and status text.
protected  void HttpMethodBase.writeRequest(HttpState state, HttpConnection conn)
           Writes my request to the given HttpConnection.
protected  boolean HttpMethodBase.writeRequestBody(HttpState state, HttpConnection conn)
          Write the request body to the given HttpConnection.
protected  void HttpMethodBase.writeRequestHeaders(HttpState state, HttpConnection conn)
          Writes the request headers to the given HttpConnection.
protected  void HttpMethodBase.writeRequestLine(HttpState state, HttpConnection conn)
          Writes the "request line" to the given HttpConnection.
 void HttpConnectionManager.releaseConnection(HttpConnection conn)
          Releases the given HttpConnection for use by other requests.
 void MultiThreadedHttpConnectionManager.releaseConnection(HttpConnection conn)
          Make the given HttpConnection available for use by other requests.
 boolean MethodRetryHandler.retryMethod(HttpMethod method, HttpConnection connection, HttpRecoverableException recoverableException, int executionCount, boolean requestSent)
          Determines if a method should be retried after an HttpRecoverableException occurs during execution.
protected  void ConnectMethod.addAuthorizationRequestHeader(HttpState state, HttpConnection conn)
          This method does nothing.
protected  void ConnectMethod.addContentLengthRequestHeader(HttpState state, HttpConnection conn)
          This method does nothing.
protected  void ConnectMethod.addCookieRequestHeader(HttpState state, HttpConnection conn)
          This method does nothing.
protected  void ConnectMethod.addRequestHeaders(HttpState state, HttpConnection conn)
          Populates the request headers map to with additional headers to be submitted to the given HttpConnection.
 int ConnectMethod.execute(HttpState state, HttpConnection conn)
          Execute this method by tunnelling and then executing the wrapped method.
protected  void ConnectMethod.writeRequestLine(HttpState state, HttpConnection conn)
          Special Connect request.
protected  boolean ConnectMethod.shouldCloseConnection(HttpConnection conn)
          Returns true if the status code is anything other than SC_OK, false otherwise.
 

Constructors in org.apache.commons.httpclient with parameters of type HttpConnection
HttpConnection.ConnectionTimeoutException.HttpConnection.ConnectionTimeoutException()
          Create an instance
 

Uses of HttpConnection in org.apache.commons.httpclient.auth
 

Methods in org.apache.commons.httpclient.auth with parameters of type HttpConnection
static boolean HttpAuthenticator.authenticateDefault(HttpMethod method, HttpConnection conn, HttpState state)
          Attempt to provide default authentication credentials to the given method in the given context using basic authentication scheme.
static boolean HttpAuthenticator.authenticateProxyDefault(HttpMethod method, HttpConnection conn, HttpState state)
          Attempt to provide default proxy authentication credentials to the given method in the given context using basic authentication scheme.
static boolean HttpAuthenticator.authenticate(AuthScheme authscheme, HttpMethod method, HttpConnection conn, HttpState state)
          Attempt to provide requisite authentication credentials to the given method in the given context using the given authentication scheme.
static boolean HttpAuthenticator.authenticateProxy(AuthScheme authscheme, HttpMethod method, HttpConnection conn, HttpState state)
          Attempt to provide requisite proxy authentication credentials to the given method in the given context using the given authentication scheme.
 

Uses of HttpConnection in org.apache.commons.httpclient.methods
 

Methods in org.apache.commons.httpclient.methods with parameters of type HttpConnection
protected  void GetMethod.readResponseBody(HttpState state, HttpConnection conn)
          Overrides method in HttpMethodBase to write data to the appropriate buffer.
protected  void ExpectContinueMethod.addRequestHeaders(HttpState state, HttpConnection conn)
          Set the Expect header if it has not already been set, in addition to the "standard" set of headers.
protected  void MultipartPostMethod.addRequestHeaders(HttpState state, HttpConnection conn)
          Add content type header and set the Expect header if it has not already been set, in addition to the "standard" set of headers
protected  boolean MultipartPostMethod.writeRequestBody(HttpState state, HttpConnection conn)
          Write the request body.
protected  void OptionsMethod.processResponseHeaders(HttpState state, HttpConnection conn)
          Process the response headers.
protected  void EntityEnclosingMethod.addContentLengthRequestHeader(HttpState state, HttpConnection conn)
          Adds a Content-Length or Transfer-Encoding: Chunked request header, as long as no Content-Length request header already exists.
protected  boolean EntityEnclosingMethod.writeRequestBody(HttpState state, HttpConnection conn)
          Override method of HttpMethodBase to write request parameters as the request body.
protected  void HeadMethod.readResponseBody(HttpState state, HttpConnection conn)
          Overrides HttpMethodBase method to not read a response body, despite the presence of a Content-Length or Transfer-Encoding header.
protected  void PostMethod.addRequestHeaders(HttpState state, HttpConnection conn)
          Override method of HttpMethodBase to also add Content-Type header when appropriate.
 



Copyright © 2001-2003 Apache Software Foundation. All Rights Reserved.