Package com.sun.identity.common
Class HttpURLConnectionManager
- java.lang.Object
-
- com.sun.identity.common.HttpURLConnectionManager
-
public class HttpURLConnectionManager extends Object
TheHttpURLConnectionManager
class is used to getHttpURLConnection
instances and set read as well as connect timeout- Author:
- Bernhard Thalmayr
-
-
Constructor Summary
Constructors Constructor Description HttpURLConnectionManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HttpURLConnection
getConnection(URL url)
Get theHttpURLConnection
and set read and connect timeoutstatic int
getConnectTimeout()
static int
getReadTimeout()
-
-
-
Method Detail
-
getConnection
public static HttpURLConnection getConnection(URL url) throws IOException
Get theHttpURLConnection
and set read and connect timeout- Parameters:
url
- TheURL
to open connection with- Returns:
- A
HttpURLConnection
. - Throws:
IOException
- when callingURL.openConnection
fails
-
getReadTimeout
public static int getReadTimeout()
-
getConnectTimeout
public static int getConnectTimeout()
-
-