public interface HttpClientFactory
DefaultHttpClients.| Modifier and Type | Method and Description |
|---|---|
org.apache.http.impl.client.DefaultHttpClient |
createHttpClient()
Creates a
DefaultHttpClient and sets a default timeout and user agent for it. |
org.apache.http.impl.client.DefaultHttpClient |
createHttpClient(Integer timeout,
String userAgent)
Creates a
DefaultHttpClient and sets a timeout for it. |
org.apache.http.impl.client.DefaultHttpClient createHttpClient()
DefaultHttpClient and sets a default timeout and user agent for it.DefaultHttpClient The created client.org.apache.http.impl.client.DefaultHttpClient createHttpClient(Integer timeout, String userAgent)
DefaultHttpClient and sets a timeout for it.timeout - The connection timeout in milliseconds. If null a default timeout of 10 seconds will be used.userAgent - The user agentDefaultHttpClient The created client.Copyright © 2014. All rights reserved.