Package com.sun.identity.common
Class HttpURLConnectionManager
- java.lang.Object
-
- com.sun.identity.common.HttpURLConnectionManager
-
public class HttpURLConnectionManager extends Object
TheHttpURLConnectionManagerclass is used to getHttpURLConnectioninstances 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 HttpURLConnectiongetConnection(URL url)Get theHttpURLConnectionand set read and connect timeoutstatic intgetConnectTimeout()static intgetReadTimeout()
-
-
-
Method Detail
-
getConnection
public static HttpURLConnection getConnection(URL url) throws IOException
Get theHttpURLConnectionand set read and connect timeout- Parameters:
url- TheURLto open connection with- Returns:
- A
HttpURLConnection. - Throws:
IOException- when callingURL.openConnectionfails
-
getReadTimeout
public static int getReadTimeout()
-
getConnectTimeout
public static int getConnectTimeout()
-
-