public class HttpURLConnectionManager extends Object
HttpURLConnectionManager
class is used to get
HttpURLConnection
instances and set read as well as connect timeoutConstructor 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–2025 Open Identity Platform Community. All rights reserved.