| java.lang.Object | |
| ↳ | org.apache.http.impl.client.AbstractHttpClient | 
        
          
        
        Known Direct Subclasses
        
        | 
      
Convenience base class for HTTP client implementations.
| Protected Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 
          | 
        
          
          Creates a new HTTP client.
          
         | 
       ||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 
          | 
        
          | 
       ||||||||||
| 
          | 
        
          | 
       ||||||||||
| 
          | 
        
          | 
       ||||||||||
| 
          | 
        
          | 
       ||||||||||
| 
          | 
        
          | 
       ||||||||||
| 
          | 
        
          | 
       ||||||||||
| 
          | 
        
          
          Executes a request using the default context.
          
         | 
       ||||||||||
| 
          | 
        
          
          Executes a request using the given context and processes the
 response using the given response handler.
          
         | 
       ||||||||||
| 
          | 
        
          
          Maps to
           
        
           
            execute(target, request, context)
           
          
          .
          | 
       ||||||||||
| 
          | 
        
          
          Executes a request to the target using the default context and 
 processes the response using the given response handler.
          
         | 
       ||||||||||
| 
          | 
        
          
          Executes a request to the target using the default context.
          
         | 
       ||||||||||
| 
          | 
        
          
          Executes a request to the target using the given context.
          
         | 
       ||||||||||
| 
          | 
        
          
          Executes a request to the target using the given context and 
 processes the response using the given response handler.
          
         | 
       ||||||||||
| 
          | 
        
          
          Executes a request using the default context and processes the
 response using the given response handler.
          
         | 
       ||||||||||
| 
          | 
        
          | 
       ||||||||||
| 
          | 
        
          | 
       ||||||||||
| 
          | 
        
          
          Obtains the connection manager used by this client.
          
         | 
       ||||||||||
| 
          | 
        
          | 
       ||||||||||
| 
          | 
        
          | 
       ||||||||||
| 
          | 
        
          | 
       ||||||||||
| 
          | 
        
          | 
       ||||||||||
| 
          | 
        
          | 
       ||||||||||
| 
          | 
        
          
          Obtains the parameters for this client.
          
         | 
       ||||||||||
| 
          | 
        
          | 
       ||||||||||
| 
          | 
        
          | 
       ||||||||||
| 
          | 
        
          | 
       ||||||||||
| 
          | 
        
          | 
       ||||||||||
| 
          | 
        
          | 
       ||||||||||
| 
          | 
        
          | 
       ||||||||||
| 
          | 
        
          | 
       ||||||||||
| 
          | 
        
          | 
       ||||||||||
| 
          | 
        
          | 
       ||||||||||
| 
          | 
        
          | 
       ||||||||||
| 
          | 
        
          | 
       ||||||||||
| 
          | 
        
          | 
       ||||||||||
| 
          | 
        
          | 
       ||||||||||
| 
          | 
        
          | 
       ||||||||||
| 
          | 
        
          | 
       ||||||||||
| 
          | 
        
          | 
       ||||||||||
| 
          | 
        
          | 
       ||||||||||
| 
          | 
        
          | 
       ||||||||||
| 
          | 
        
          
          Replaces the parameters.
          
         | 
       ||||||||||
| 
          | 
        
          | 
       ||||||||||
| 
          | 
        
          | 
       ||||||||||
| 
          | 
        
          | 
       ||||||||||
| 
          | 
        
          | 
       ||||||||||
| 
          | 
        
          | 
       ||||||||||
| 
          | 
        
          | 
       ||||||||||
| 
         
          [Expand]
         
          
          Inherited Methods
          
         | 
       |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
         
           
         
         From class
         
          java.lang.Object
         
          | 
       |||||||||||
         
           
         
         From interface
         
          org.apache.http.client.HttpClient
         
          | 
       |||||||||||
Creates a new HTTP client.
| conman | the connection manager | 
|---|---|
| params | the parameters | 
Executes a request using the default context.
| request | the request to execute | 
|---|
Executes a request using the given context and processes the response using the given response handler.
| request | the request to execute | 
|---|---|
| responseHandler | the response handler | 
         Maps to
         
          
           execute(target, request, context)
          
         
         .
 The target is determined from the URI of the request.
        
| request | the request to execute | 
|---|---|
| context | 
           the request-specific execution context,
                  or
           
            null
           
           to use a default context
           | 
         
Executes a request to the target using the default context and processes the response using the given response handler.
| target | 
           the target host for the request.
                  Implementations may accept
           
            null
           
           if they can still determine a route, for example
                  to a default target or by inspecting the request.
           | 
         
|---|---|
| request | the request to execute | 
| responseHandler | the response handler | 
Executes a request to the target using the default context.
| target | 
           the target host for the request.
                  Implementations may accept
           
            null
           
           if they can still determine a route, for example
                  to a default target or by inspecting the request.
           | 
         
|---|---|
| request | the request to execute | 
Executes a request to the target using the given context.
| target | 
           the target host for the request.
                  Implementations may accept
           
            null
           
           if they can still determine a route, for example
                  to a default target or by inspecting the request.
           | 
         
|---|---|
| request | the request to execute | 
| context | 
           the context to use for the execution, or
           
            null
           
           to use the default context
           | 
         
Executes a request to the target using the given context and processes the response using the given response handler.
| target | 
           the target host for the request.
                  Implementations may accept
           
            null
           
           if they can still determine a route, for example
                  to a default target or by inspecting the request.
           | 
         
|---|---|
| request | the request to execute | 
| responseHandler | the response handler | 
| context | 
           the context to use for the execution, or
           
            null
           
           to use the default context
           | 
         
Executes a request using the default context and processes the response using the given response handler.
| request | the request to execute | 
|---|---|
| responseHandler | the response handler | 
Obtains the connection manager used by this client.
Obtains the parameters for this client. These parameters will become defaults for all requests being executed with this client, and for the parameters of dependent objects in this client.
Replaces the parameters. The implementation here does not update parameters of dependent objects.
| params | the new default parameters | 
|---|
         Obtains parameters for executing a request.
 The default implementation in this class creates a new
         
          
           ClientParamsStack
          
         
         from the request parameters
 and the client parameters.
         
         This method is called by the default implementation of
         
          
           execute(HttpHost, HttpRequest, HttpContext)
          
         
         to obtain the parameters for the
         
          
           DefaultRequestDirector
          
         
         .
        
| req | the request that will be executed | 
|---|