public class HttpURLConnectionManager extends Object
HttpURLConnectionManager class is used to get
HttpURLConnection instances and set read as well as connect timeout| Constructor and Description |
|---|
HttpURLConnectionManager() |
| Modifier and Type | Method and Description |
|---|---|
static HttpURLConnection |
getConnection(URL url)
Get the
HttpURLConnection and set read and connect timeout |
static int |
getConnectTimeout() |
static int |
getReadTimeout() |
public static HttpURLConnection getConnection(URL url) throws IOException
HttpURLConnection and set read and connect timeouturl - The URL to open connection withHttpURLConnection.IOException - when calling URL.openConnection failspublic static int getReadTimeout()
public static int getConnectTimeout()
Copyright © 2010–2023 Open Identity Platform Community. All rights reserved.