public final class HttpClientUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static DefaultHttpClient |
createInstance()
Create a new HttpClient instance with default settings and HttpMethodRetry disabled.
|
static DefaultHttpClient |
createInstance(ClientConnectionManager connectionManager)
Create a new HttpClient instance with default settings using the given ClientConnectionManager and with
HttpMethodRetry disabled.
|
static ClientConnectionManager |
createThreadSafeConnectionManager()
Create a default connection manager usable for multithreading.
|
static ClientConnectionManager |
createThreadSafeConnectionManager(int maxTotalConnections,
int maxConnectionsPerHost)
Create a default connection manager usable for multithreading with given connection limits.
|
public static DefaultHttpClient createInstance()
public static DefaultHttpClient createInstance(ClientConnectionManager connectionManager)
connectionManager
- the ClientConnectionManager to usepublic static ClientConnectionManager createThreadSafeConnectionManager()
public static ClientConnectionManager createThreadSafeConnectionManager(int maxTotalConnections, int maxConnectionsPerHost)