public final class SocketUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
SocketUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeQuietly(ServerSocket serverSocket) |
static void |
closeQuietly(Socket socket) |
static ServerSocket |
createServerSocket(int port,
ServerSocketConfiguration config) |
static Socket |
createSocket(InetSocketAddress address,
SocketConfiguration config) |
public static Socket createSocket(InetSocketAddress address, SocketConfiguration config) throws IOException
IOExceptionpublic static ServerSocket createServerSocket(int port, ServerSocketConfiguration config) throws IOException, KeyManagementException, UnrecoverableKeyException, NoSuchAlgorithmException, KeyStoreException, CertificateException
public static void closeQuietly(Socket socket)
public static void closeQuietly(ServerSocket serverSocket)
Copyright © 2016 Apache NiFi Project. All rights reserved.