org.red5.server.util
Class HttpConnectionUtil
java.lang.Object
org.red5.server.util.HttpConnectionUtil
public class HttpConnectionUtil
- extends Object
Utility for using HTTP connections.
- Author:
- The Red5 Project ([email protected]), Paul Gregoire ([email protected])
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpConnectionUtil
public HttpConnectionUtil()
getClient
public static final org.apache.http.impl.client.DefaultHttpClient getClient()
- Returns a client with all our selected properties / params.
- Returns:
- client
handleError
public static void handleError(org.apache.http.HttpResponse response)
throws org.apache.http.ParseException,
IOException
- Logs details about the request error.
- Parameters:
response
-
- Throws:
IOException
org.apache.http.ParseException
getConnectionTimeout
public int getConnectionTimeout()
- Returns:
- the connectionTimeout
setConnectionTimeout
public void setConnectionTimeout(int connectionTimeout)
- Parameters:
connectionTimeout
- the connectionTimeout to set
Copyright © 2006-2012 The Red5 Project