|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.http.client.util.HttpClientUtil
public final class HttpClientUtil
Utility class for HttpClient instance creation. Use this class instead of direct HttpClient constructor calls.
| Method Summary | |
|---|---|
static HttpClient |
createInstance()
Create a new HttpClient instance with default settings and HttpMethodRetry disabled. |
static HttpClient |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static HttpClient createInstance()
public static HttpClient createInstance(ClientConnectionManager connectionManager)
connectionManager - the ClientConnectionManager to use
public static ClientConnectionManager createThreadSafeConnectionManager()
public static ClientConnectionManager createThreadSafeConnectionManager(int maxTotalConnections,
int maxConnectionsPerHost)
|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||