Get rid of netconf-tcp project
[netconf.git] / netconf / mdsal-netconf-tcp / src / main / java / org / opendaylight / netconf / tcp / NetconfNorthboundTcpServer.java
similarity index 87%
rename from netconf/netconf-tcp/src/main/java/org/opendaylight/netconf/tcp/NetconfNorthboundTcpServer.java
rename to netconf/mdsal-netconf-tcp/src/main/java/org/opendaylight/netconf/tcp/NetconfNorthboundTcpServer.java
index 69090c283f6a93cd3c8136d701f5e6846791f890..f3200c9b3ae5df43110eed896c17da77553b6358 100644 (file)
@@ -26,10 +26,9 @@ public class NetconfNorthboundTcpServer implements AutoCloseable {
 
     private final ChannelFuture tcpServer;
 
-    public NetconfNorthboundTcpServer(final NetconfServerDispatcher netconfServerDispatcher,
-                                      final String address,
-                                      final String port) {
-        InetSocketAddress inetAddress = getInetAddress(address, port);
+    public NetconfNorthboundTcpServer(final NetconfServerDispatcher netconfServerDispatcher, final String address,
+            final String port) {
+        final InetSocketAddress inetAddress = getInetAddress(address, port);
         tcpServer = netconfServerDispatcher.createServer(inetAddress);
         tcpServer.addListener(future -> {
             if (future.isDone() && future.isSuccess()) {
@@ -42,7 +41,7 @@ public class NetconfNorthboundTcpServer implements AutoCloseable {
     }
 
     private static InetSocketAddress getInetAddress(final String bindingAddress, final String portNumber) {
-        IpAddress ipAddress = IpAddressBuilder.getDefaultInstance(bindingAddress);
+        final IpAddress ipAddress = IpAddressBuilder.getDefaultInstance(bindingAddress);
         final InetAddress inetAd = IetfInetUtil.INSTANCE.inetAddressFor(ipAddress);
         return new InetSocketAddress(inetAd, Integer.parseInt(portNumber));
     }