Package com.applitools.utils
Class NetworkUtils
- java.lang.Object
-
- com.applitools.utils.NetworkUtils
-
public class NetworkUtils extends Object
Network-related utilities.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SSLContextgetDisabledSSLContext()static StringgetLocalIp()static URIgetUri(String url)static URLgetUrl(String url)
-
-
-
Method Detail
-
getLocalIp
public static String getLocalIp()
- Returns:
- The non-loopback IP address of the local host or
nullif none is available.
-
getUri
public static URI getUri(String url)
- Parameters:
url- The URL string to parse.- Returns:
- A
URIobject representing the input URL.
-
getUrl
public static URL getUrl(String url)
- Parameters:
url- The URL string to parse.- Returns:
- A
URLobject representing the input URL.
-
getDisabledSSLContext
public static SSLContext getDisabledSSLContext() throws NoSuchAlgorithmException, KeyManagementException
-
-