public class HttpConnectionUtil extends Object
| Constructor and Description |
|---|
HttpConnectionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.http.client.HttpClient |
getClient()
Returns a client with all our selected properties / params.
|
static org.apache.http.client.HttpClient |
getClient(int timeout)
Returns a client with all our selected properties / params.
|
int |
getConnectionTimeout() |
static org.apache.http.client.HttpClient |
getSecureClient()
Returns a client with all our selected properties / params and SSL enabled.
|
static void |
handleError(org.apache.http.HttpResponse response)
Logs details about the request error.
|
void |
setConnectionTimeout(int connectionTimeout) |
public static final org.apache.http.client.HttpClient getClient()
public static final org.apache.http.client.HttpClient getClient(int timeout)
timeout - - socket timeout to setpublic static final org.apache.http.client.HttpClient getSecureClient()
public static void handleError(org.apache.http.HttpResponse response)
throws org.apache.http.ParseException,
IOException
response - http responseIOException - on IO errororg.apache.http.ParseException - on parse errorpublic int getConnectionTimeout()
public void setConnectionTimeout(int connectionTimeout)
connectionTimeout - the connectionTimeout to setCopyright © 2005–2017 Red5. All rights reserved.