public class Net extends Object
| Constructor and Description |
|---|
Net() |
| Modifier and Type | Method and Description |
|---|---|
static SSLContext |
acceptAllSSLContext() |
static int |
freeServerPort() |
static int |
freeServerPort(InetAddress hostAddress) |
static InetAddress |
getLocalHost() |
static InetAddress |
localHostByName() |
static boolean |
localhostIsIPv6() |
public static boolean localhostIsIPv6()
throws UnknownHostException
UnknownHostExceptionpublic static int freeServerPort()
throws IOException
IOExceptionpublic static int freeServerPort(InetAddress hostAddress) throws IOException
IOExceptionpublic static InetAddress getLocalHost() throws UnknownHostException
UnknownHostExceptionpublic static InetAddress localHostByName() throws UnknownHostException
UnknownHostExceptionpublic static SSLContext acceptAllSSLContext() throws NoSuchAlgorithmException, KeyManagementException
Copyright © 2023. All rights reserved.