Rename netconf-impl to netconf-server 51/105651/6
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 25 Apr 2023 09:37:06 +0000 (11:37 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 25 Apr 2023 14:30:22 +0000 (16:30 +0200)
This artifact contains only server-side things. Make sure to rename it
to reflect that.

JIRA: NETCONF-945
Change-Id: I13322553c4bdd8979fe564ce1337dfb9e43c7e7a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
59 files changed:
artifacts/pom.xml
features/netconf/odl-netconf-impl/pom.xml
netconf/mdsal-netconf-impl/pom.xml
netconf/mdsal-netconf-impl/src/main/java/org/opendaylight/netconf/impl/mdsal/DefaultNetconfMonitoringService.java
netconf/mdsal-netconf-impl/src/main/java/org/opendaylight/netconf/impl/mdsal/DefaultNetconfServerDispatcher.java
netconf/mdsal-netconf-impl/src/main/java/org/opendaylight/netconf/impl/mdsal/NetconfMapperAggregator.java
netconf/mdsal-netconf-impl/src/main/java/org/opendaylight/netconf/impl/mdsal/OSGiNetconfServer.java
netconf/tools/netconf-testtool/pom.xml
netconf/tools/netconf-testtool/src/main/java/org/opendaylight/netconf/test/tool/MdsalOperationProvider.java
netconf/tools/netconf-testtool/src/main/java/org/opendaylight/netconf/test/tool/NetconfDeviceSimulator.java
netconf/tools/netconf-testtool/src/main/java/org/opendaylight/netconf/test/tool/SimulatedOperationProvider.java
netconf/tools/netconf-testtool/src/main/java/org/opendaylight/netconf/test/tool/TesttoolNegotiationFactory.java
netconf/tools/netconf-testtool/src/main/java/org/opendaylight/netconf/test/tool/operations/DefaultOperationsCreator.java
netconf/tools/netconf-testtool/src/main/java/org/opendaylight/netconf/test/tool/operations/OperationsCreator.java
netconf/tools/netconf-testtool/src/main/java/org/opendaylight/netconf/test/tool/operations/OperationsProvider.java
netconf/tools/netconf-testtool/src/main/java/org/opendaylight/netconf/test/tool/rpc/SimulatedCreateSubscription.java
plugins/sal-netconf-connector/pom.xml
protocol/netconf-server/pom.xml [moved from protocol/netconf-impl/pom.xml with 76% similarity]
protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/DefaultSessionIdProvider.java [moved from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/DefaultSessionIdProvider.java with 96% similarity]
protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/NetconfServerDispatcherImpl.java [moved from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/NetconfServerDispatcherImpl.java with 73% similarity]
protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/NetconfServerSession.java [moved from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/NetconfServerSession.java with 96% similarity]
protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/NetconfServerSessionListener.java [moved from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/NetconfServerSessionListener.java with 97% similarity]
protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/NetconfServerSessionNegotiator.java [moved from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/NetconfServerSessionNegotiator.java with 98% similarity]
protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/NetconfServerSessionNegotiatorFactory.java [moved from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/NetconfServerSessionNegotiatorFactory.java with 97% similarity]
protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/NetconfServerSessionNegotiatorFactoryBuilder.java [moved from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/NetconfServerSessionNegotiatorFactoryBuilder.java with 98% similarity]
protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/SendErrorExceptionUtil.java [moved from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/SendErrorExceptionUtil.java with 97% similarity]
protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/ServerChannelInitializer.java [moved from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/ServerChannelInitializer.java with 92% similarity]
protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/SessionIdProvider.java [moved from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/SessionIdProvider.java with 90% similarity]
protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/mapping/operations/DefaultCloseSession.java [moved from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/mapping/operations/DefaultCloseSession.java with 94% similarity]
protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/mapping/operations/DefaultNetconfOperation.java [moved from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/mapping/operations/DefaultNetconfOperation.java with 77% similarity]
protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/mapping/operations/DefaultStartExi.java [moved from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/mapping/operations/DefaultStartExi.java with 96% similarity]
protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/mapping/operations/DefaultStopExi.java [moved from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/mapping/operations/DefaultStopExi.java with 78% similarity]
protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/osgi/AggregatedNetconfOperationServiceFactory.java [moved from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/osgi/AggregatedNetconfOperationServiceFactory.java with 99% similarity]
protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/osgi/NetconfCapabilityMonitoringService.java [moved from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/osgi/NetconfCapabilityMonitoringService.java with 99% similarity]
protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/osgi/NetconfMonitoringServiceImpl.java [moved from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/osgi/NetconfMonitoringServiceImpl.java with 98% similarity]
protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/osgi/NetconfOperationRouter.java [moved from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/osgi/NetconfOperationRouter.java with 76% similarity]
protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/osgi/NetconfOperationRouterImpl.java [moved from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/osgi/NetconfOperationRouterImpl.java with 96% similarity]
protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/osgi/NetconfSessionMonitoringService.java [moved from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/osgi/NetconfSessionMonitoringService.java with 99% similarity]
protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/util/DeserializerExceptionHandler.java [moved from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/util/DeserializerExceptionHandler.java with 93% similarity]
protocol/netconf-server/src/main/yang/odl-netconf-monitoring.yang [moved from protocol/netconf-impl/src/main/yang/odl-netconf-monitoring.yang with 100% similarity]
protocol/netconf-server/src/test/java/org/opendaylight/netconf/server/AdditionalHeaderParserTest.java [moved from protocol/netconf-impl/src/test/java/org/opendaylight/netconf/impl/AdditionalHeaderParserTest.java with 97% similarity]
protocol/netconf-server/src/test/java/org/opendaylight/netconf/server/ConcurrentClientsTest.java [moved from protocol/netconf-impl/src/test/java/org/opendaylight/netconf/impl/ConcurrentClientsTest.java with 99% similarity]
protocol/netconf-server/src/test/java/org/opendaylight/netconf/server/ExiEncodeDecodeTest.java [moved from protocol/netconf-impl/src/test/java/org/opendaylight/netconf/impl/ExiEncodeDecodeTest.java with 94% similarity]
protocol/netconf-server/src/test/java/org/opendaylight/netconf/server/MessageParserTest.java [moved from protocol/netconf-impl/src/test/java/org/opendaylight/netconf/impl/MessageParserTest.java with 99% similarity]
protocol/netconf-server/src/test/java/org/opendaylight/netconf/server/NetconfDispatcherImplTest.java [moved from protocol/netconf-impl/src/test/java/org/opendaylight/netconf/impl/NetconfDispatcherImplTest.java with 94% similarity]
protocol/netconf-server/src/test/java/org/opendaylight/netconf/server/NetconfServerSessionListenerTest.java [moved from protocol/netconf-impl/src/test/java/org/opendaylight/netconf/impl/NetconfServerSessionListenerTest.java with 98% similarity]
protocol/netconf-server/src/test/java/org/opendaylight/netconf/server/NetconfServerSessionNegotiatorTest.java [moved from protocol/netconf-impl/src/test/java/org/opendaylight/netconf/impl/NetconfServerSessionNegotiatorTest.java with 71% similarity]
protocol/netconf-server/src/test/java/org/opendaylight/netconf/server/NetconfServerSessionTest.java [moved from protocol/netconf-impl/src/test/java/org/opendaylight/netconf/impl/NetconfServerSessionTest.java with 99% similarity]
protocol/netconf-server/src/test/java/org/opendaylight/netconf/server/SendErrorExceptionUtilTest.java [moved from protocol/netconf-impl/src/test/java/org/opendaylight/netconf/impl/SendErrorExceptionUtilTest.java with 98% similarity]
protocol/netconf-server/src/test/java/org/opendaylight/netconf/server/mapping/operations/DefaultCloseSessionTest.java [moved from protocol/netconf-impl/src/test/java/org/opendaylight/netconf/impl/mapping/operations/DefaultCloseSessionTest.java with 92% similarity]
protocol/netconf-server/src/test/java/org/opendaylight/netconf/server/mapping/operations/DefaultStopExiTest.java [moved from protocol/netconf-impl/src/test/java/org/opendaylight/netconf/impl/mapping/operations/DefaultStopExiTest.java with 94% similarity]
protocol/netconf-server/src/test/java/org/opendaylight/netconf/server/osgi/AggregatedNetconfOperationServiceFactoryTest.java [moved from protocol/netconf-impl/src/test/java/org/opendaylight/netconf/impl/osgi/AggregatedNetconfOperationServiceFactoryTest.java with 99% similarity]
protocol/netconf-server/src/test/java/org/opendaylight/netconf/server/osgi/NetconfCapabilityMonitoringServiceTest.java [moved from protocol/netconf-impl/src/test/java/org/opendaylight/netconf/impl/osgi/NetconfCapabilityMonitoringServiceTest.java with 99% similarity]
protocol/netconf-server/src/test/java/org/opendaylight/netconf/server/osgi/NetconfOperationRouterImplTest.java [moved from protocol/netconf-impl/src/test/java/org/opendaylight/netconf/impl/osgi/NetconfOperationRouterImplTest.java with 96% similarity]
protocol/netconf-server/src/test/java/org/opendaylight/netconf/server/osgi/NetconfSessionMonitoringServiceTest.java [moved from protocol/netconf-impl/src/test/java/org/opendaylight/netconf/impl/osgi/NetconfSessionMonitoringServiceTest.java with 99% similarity]
protocol/netconf-server/src/test/java/org/opendaylight/netconf/server/util/DeserializerExceptionHandlerTest.java [moved from protocol/netconf-impl/src/test/java/org/opendaylight/netconf/impl/util/DeserializerExceptionHandlerTest.java with 97% similarity]
protocol/netconf-server/src/test/resources/messages/rpc.xml [moved from protocol/netconf-impl/src/test/resources/messages/rpc.xml with 100% similarity]
protocol/netconf-server/src/test/resources/messages/rpc_ns.xml [moved from protocol/netconf-impl/src/test/resources/messages/rpc_ns.xml with 100% similarity]
protocol/pom.xml

index 27737be14fda23128cf9b2b62c4787cf007a3eb0..f8209c061981bba8921fe7b5603baae6b357ca83 100644 (file)
             </dependency>
             <dependency>
                 <groupId>${project.groupId}</groupId>
-                <artifactId>mdsal-netconf-connector</artifactId>
+                <artifactId>netconf-server</artifactId>
                 <version>${project.version}</version>
             </dependency>
             <dependency>
                 <groupId>${project.groupId}</groupId>
-                <artifactId>netconf-impl</artifactId>
+                <artifactId>netconf-mapping-api</artifactId>
                 <version>${project.version}</version>
             </dependency>
             <dependency>
                 <groupId>${project.groupId}</groupId>
-                <artifactId>netconf-mapping-api</artifactId>
+                <artifactId>mdsal-netconf-connector</artifactId>
                 <version>${project.version}</version>
             </dependency>
             <dependency>
                 <version>${project.version}</version>
                 <type>test-jar</type>
             </dependency>
-            <dependency>
-                <groupId>${project.groupId}</groupId>
-                <artifactId>netconf-impl</artifactId>
-                <version>${project.version}</version>
-                <type>test-jar</type>
-            </dependency>
             <dependency>
                 <groupId>${project.groupId}</groupId>
                 <artifactId>netconf-netty-util</artifactId>
index fc45317e160924bbe721f53eb7efcda2694e3e6e..7ae7595791017e01ead844e6f00f7cc9f5477136 100644 (file)
@@ -59,7 +59,7 @@
         </dependency>
         <dependency>
             <groupId>${project.groupId}</groupId>
-            <artifactId>netconf-impl</artifactId>
+            <artifactId>netconf-server</artifactId>
         </dependency>
     </dependencies>
 </project>
index 77b4422d53d533d4c2ac6b2cf26779f83c6bdd0b..4c6a1c41142b6e462b0b959dfebdb4984e36c9fd 100644 (file)
@@ -43,7 +43,7 @@
     </dependency>
     <dependency>
       <groupId>org.opendaylight.netconf</groupId>
-      <artifactId>netconf-impl</artifactId>
+      <artifactId>netconf-server</artifactId>
     </dependency>
     <dependency>
       <groupId>org.opendaylight.netconf</groupId>
index 1b918657d7a2cf78d9ca71aa7751fc9b44c19f49..97a78bc865fc38f65840f0f4d9a27023f88fa70d 100644 (file)
@@ -12,8 +12,8 @@ import static java.util.Objects.requireNonNull;
 import java.util.Map;
 import org.opendaylight.controller.config.threadpool.ScheduledThreadPool;
 import org.opendaylight.netconf.api.monitoring.NetconfMonitoringService;
-import org.opendaylight.netconf.impl.osgi.NetconfMonitoringServiceImpl;
 import org.opendaylight.netconf.mapping.api.NetconfOperationServiceFactory;
+import org.opendaylight.netconf.server.osgi.NetconfMonitoringServiceImpl;
 import org.osgi.service.component.annotations.Activate;
 import org.osgi.service.component.annotations.Component;
 import org.osgi.service.component.annotations.Deactivate;
index a60317b711422e6d21cafe5072989f0705ced699..a1edec19eebd23eb0afb224a44fd12005538aba4 100644 (file)
@@ -12,8 +12,8 @@ import static java.util.Objects.requireNonNull;
 import io.netty.channel.EventLoopGroup;
 import java.util.Map;
 import org.opendaylight.netconf.api.NetconfServerDispatcher;
-import org.opendaylight.netconf.impl.NetconfServerDispatcherImpl;
-import org.opendaylight.netconf.impl.ServerChannelInitializer;
+import org.opendaylight.netconf.server.NetconfServerDispatcherImpl;
+import org.opendaylight.netconf.server.ServerChannelInitializer;
 import org.osgi.service.component.annotations.Activate;
 import org.osgi.service.component.annotations.Component;
 
index cf3637a13fe49423b40c72ad9ab564c196aeef88..ea0eda2cdb6e2eca7b81ef08534b8084616749c2 100644 (file)
@@ -7,9 +7,9 @@
  */
 package org.opendaylight.netconf.impl.mdsal;
 
-import org.opendaylight.netconf.impl.osgi.AggregatedNetconfOperationServiceFactory;
 import org.opendaylight.netconf.mapping.api.NetconfOperationServiceFactory;
 import org.opendaylight.netconf.mapping.api.NetconfOperationServiceFactoryListener;
+import org.opendaylight.netconf.server.osgi.AggregatedNetconfOperationServiceFactory;
 import org.osgi.service.component.annotations.Activate;
 import org.osgi.service.component.annotations.Component;
 import org.osgi.service.component.annotations.Deactivate;
index e4bb3ba75102811346e8164cc6809fdbfc97c01d..56aae63938b8657bc5998c4f761d81aef0534781 100644 (file)
@@ -14,11 +14,11 @@ import io.netty.channel.EventLoopGroup;
 import io.netty.util.Timer;
 import java.util.Map;
 import org.opendaylight.controller.config.threadpool.ScheduledThreadPool;
-import org.opendaylight.netconf.impl.NetconfServerSessionNegotiatorFactory;
-import org.opendaylight.netconf.impl.ServerChannelInitializer;
-import org.opendaylight.netconf.impl.SessionIdProvider;
-import org.opendaylight.netconf.impl.osgi.AggregatedNetconfOperationServiceFactory;
 import org.opendaylight.netconf.mapping.api.NetconfOperationServiceFactory;
+import org.opendaylight.netconf.server.NetconfServerSessionNegotiatorFactory;
+import org.opendaylight.netconf.server.ServerChannelInitializer;
+import org.opendaylight.netconf.server.SessionIdProvider;
+import org.opendaylight.netconf.server.osgi.AggregatedNetconfOperationServiceFactory;
 import org.osgi.framework.FrameworkUtil;
 import org.osgi.service.component.ComponentFactory;
 import org.osgi.service.component.ComponentInstance;
index 3a6341917cd1d488f24e62164319f038a0546739..56a9d7a74c3b4be9c1d10ab83a04faa7924fa8ce 100644 (file)
             <groupId>${project.groupId}</groupId>
             <artifactId>netconf-client</artifactId>
         </dependency>
+        <dependency>
+            <groupId>${project.groupId}</groupId>
+            <artifactId>netconf-server</artifactId>
+        </dependency>
         <dependency>
             <groupId>com.guicedee.services</groupId>
             <artifactId>javax.inject</artifactId>
             <groupId>org.opendaylight.mdsal.binding.model.ietf</groupId>
             <artifactId>rfc6991</artifactId>
         </dependency>
-        <dependency>
-            <groupId>${project.groupId}</groupId>
-            <artifactId>netconf-impl</artifactId>
-        </dependency>
         <dependency>
             <groupId>${project.groupId}</groupId>
             <artifactId>netconf-mapping-api</artifactId>
index 3685f2172b37eb6dc6d36afd13b393b38b04def5..b60acee256425cb416b29f57a03931b4b870f789 100644 (file)
@@ -23,7 +23,6 @@ import org.opendaylight.mdsal.dom.spi.store.DOMStore;
 import org.opendaylight.mdsal.dom.store.inmemory.InMemoryDOMDataStoreFactory;
 import org.opendaylight.netconf.api.capability.Capability;
 import org.opendaylight.netconf.api.monitoring.CapabilityListener;
-import org.opendaylight.netconf.impl.SessionIdProvider;
 import org.opendaylight.netconf.mapping.api.NetconfOperation;
 import org.opendaylight.netconf.mapping.api.NetconfOperationService;
 import org.opendaylight.netconf.mapping.api.NetconfOperationServiceFactory;
@@ -36,6 +35,7 @@ import org.opendaylight.netconf.mdsal.connector.ops.Lock;
 import org.opendaylight.netconf.mdsal.connector.ops.Unlock;
 import org.opendaylight.netconf.mdsal.connector.ops.get.Get;
 import org.opendaylight.netconf.mdsal.connector.ops.get.GetConfig;
+import org.opendaylight.netconf.server.SessionIdProvider;
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.netconf.monitoring.rev101004.NetconfState;
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.netconf.monitoring.rev101004.Yang;
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.netconf.monitoring.rev101004.netconf.state.Schemas;
index 973426bc5c0f6e3c2a31e229fca126c8681863e3..b1136c83e47127f15b876b67f2af9022154de397 100644 (file)
@@ -38,13 +38,13 @@ import org.opendaylight.netconf.api.capability.BasicCapability;
 import org.opendaylight.netconf.api.capability.Capability;
 import org.opendaylight.netconf.api.capability.YangModuleCapability;
 import org.opendaylight.netconf.api.monitoring.NetconfMonitoringService;
-import org.opendaylight.netconf.impl.DefaultSessionIdProvider;
-import org.opendaylight.netconf.impl.NetconfServerDispatcherImpl;
-import org.opendaylight.netconf.impl.NetconfServerSessionNegotiatorFactory;
-import org.opendaylight.netconf.impl.ServerChannelInitializer;
-import org.opendaylight.netconf.impl.SessionIdProvider;
-import org.opendaylight.netconf.impl.osgi.AggregatedNetconfOperationServiceFactory;
 import org.opendaylight.netconf.mapping.api.NetconfOperationServiceFactory;
+import org.opendaylight.netconf.server.DefaultSessionIdProvider;
+import org.opendaylight.netconf.server.NetconfServerDispatcherImpl;
+import org.opendaylight.netconf.server.NetconfServerSessionNegotiatorFactory;
+import org.opendaylight.netconf.server.ServerChannelInitializer;
+import org.opendaylight.netconf.server.SessionIdProvider;
+import org.opendaylight.netconf.server.osgi.AggregatedNetconfOperationServiceFactory;
 import org.opendaylight.netconf.shaded.sshd.common.keyprovider.KeyPairProvider;
 import org.opendaylight.netconf.shaded.sshd.common.util.threads.ThreadUtils;
 import org.opendaylight.netconf.ssh.SshProxyServer;
index 38aabec19f0ea60a164229527111a4ed337e9ea1..4988a24d114264cafa7262942262c41feaa67cbc 100644 (file)
@@ -13,10 +13,10 @@ import java.util.Optional;
 import java.util.Set;
 import org.opendaylight.netconf.api.capability.Capability;
 import org.opendaylight.netconf.api.monitoring.CapabilityListener;
-import org.opendaylight.netconf.impl.SessionIdProvider;
 import org.opendaylight.netconf.mapping.api.NetconfOperation;
 import org.opendaylight.netconf.mapping.api.NetconfOperationService;
 import org.opendaylight.netconf.mapping.api.NetconfOperationServiceFactory;
+import org.opendaylight.netconf.server.SessionIdProvider;
 import org.opendaylight.netconf.test.tool.rpc.DataList;
 import org.opendaylight.netconf.test.tool.rpc.SimulatedCommit;
 import org.opendaylight.netconf.test.tool.rpc.SimulatedCreateSubscription;
index d7b2902c298a261836106e2f7d23a374503ad333..b6abfe25eabd5822a29aecfd7b124f6925578d8d 100644 (file)
@@ -14,10 +14,10 @@ import java.util.HashMap;
 import java.util.Map;
 import java.util.Set;
 import org.opendaylight.netconf.api.monitoring.NetconfMonitoringService;
-import org.opendaylight.netconf.impl.NetconfServerSessionNegotiatorFactory;
-import org.opendaylight.netconf.impl.SessionIdProvider;
 import org.opendaylight.netconf.mapping.api.NetconfOperationService;
 import org.opendaylight.netconf.mapping.api.NetconfOperationServiceFactory;
+import org.opendaylight.netconf.server.NetconfServerSessionNegotiatorFactory;
+import org.opendaylight.netconf.server.SessionIdProvider;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
index ec27852a15e030196ae64556f4407ea3a83d72b4..8833ff8d9b81088f378352b890539c961961af37 100644 (file)
@@ -11,9 +11,9 @@ import com.google.common.collect.Sets;
 import java.util.Optional;
 import java.util.Set;
 import org.opendaylight.netconf.api.capability.Capability;
-import org.opendaylight.netconf.impl.SessionIdProvider;
 import org.opendaylight.netconf.mapping.api.NetconfOperation;
 import org.opendaylight.netconf.mapping.api.NetconfOperationService;
+import org.opendaylight.netconf.server.SessionIdProvider;
 import org.opendaylight.netconf.test.tool.rpc.DataList;
 import org.opendaylight.netconf.test.tool.rpc.SimulatedCommit;
 import org.opendaylight.netconf.test.tool.rpc.SimulatedCreateSubscription;
index ba8d02e1a69692764cb71999eaa0f7333a8205f0..e9d441d6b78c083f9d0bddd06fdc7be6f080ca09 100644 (file)
@@ -9,8 +9,8 @@ package org.opendaylight.netconf.test.tool.operations;
 
 import java.util.Set;
 import org.opendaylight.netconf.api.capability.Capability;
-import org.opendaylight.netconf.impl.SessionIdProvider;
 import org.opendaylight.netconf.mapping.api.NetconfOperationService;
+import org.opendaylight.netconf.server.SessionIdProvider;
 
 /**
  * Creator which enables testtool users to inject own. implementation of {@link NetconfOperationService}
index 6e56e3d5f014928425edc2ba50a507b17e5f109e..0955c3ddab490bfd666e5030f3add9565ab9bcbb 100644 (file)
@@ -10,9 +10,9 @@ package org.opendaylight.netconf.test.tool.operations;
 import java.util.Set;
 import org.opendaylight.netconf.api.capability.Capability;
 import org.opendaylight.netconf.api.monitoring.CapabilityListener;
-import org.opendaylight.netconf.impl.SessionIdProvider;
 import org.opendaylight.netconf.mapping.api.NetconfOperationService;
 import org.opendaylight.netconf.mapping.api.NetconfOperationServiceFactory;
+import org.opendaylight.netconf.server.SessionIdProvider;
 import org.opendaylight.yangtools.concepts.Registration;
 
 
index c6932349e0f1b43a438aa54cf47e06b8dbced815..b354dcd1008c5955595cce4702f967e529247d69 100644 (file)
@@ -27,16 +27,16 @@ import org.opendaylight.netconf.api.NetconfMessage;
 import org.opendaylight.netconf.api.xml.XmlElement;
 import org.opendaylight.netconf.api.xml.XmlNetconfConstants;
 import org.opendaylight.netconf.api.xml.XmlUtil;
-import org.opendaylight.netconf.impl.NetconfServerSession;
-import org.opendaylight.netconf.impl.mapping.operations.DefaultNetconfOperation;
+import org.opendaylight.netconf.server.NetconfServerSession;
+import org.opendaylight.netconf.server.mapping.operations.DefaultNetconfOperation;
 import org.opendaylight.netconf.util.mapping.AbstractLastNetconfOperation;
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
 import org.xml.sax.SAXException;
 
 public class SimulatedCreateSubscription extends AbstractLastNetconfOperation implements DefaultNetconfOperation {
-
     private final Map<Notification, NetconfMessage> notifications;
+
     private NetconfServerSession session;
     private ScheduledExecutorService scheduledExecutorService;
 
index 9bc3e519e0154362eec48b073eef434b562b8383..284d0ef19912d10697b96037cf6d53ebdd630e7b 100644 (file)
     </dependency>
     <dependency>
       <groupId>${project.groupId}</groupId>
-      <artifactId>netconf-impl</artifactId>
+      <artifactId>netconf-server</artifactId>
       <scope>test</scope>
     </dependency>
     <dependency>
similarity index 76%
rename from protocol/netconf-impl/pom.xml
rename to protocol/netconf-server/pom.xml
index da8f7689318797a30ea98713a6dd0cd29f714608..28acf944e98993d0bc583fa1c8a64b1f55ee6238 100644 (file)
@@ -16,7 +16,7 @@
     <relativePath>../../parent</relativePath>
   </parent>
 
-  <artifactId>netconf-impl</artifactId>
+  <artifactId>netconf-server</artifactId>
   <name>${project.artifactId}</name>
   <packaging>bundle</packaging>
 
       <scope>test</scope>
     </dependency>
   </dependencies>
-
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.felix</groupId>
-        <artifactId>maven-bundle-plugin</artifactId>
-        <configuration>
-          <instructions>
-            <Export-Package>org.opendaylight.netconf.impl.*</Export-Package>
-          </instructions>
-        </configuration>
-      </plugin>
-      <plugin>
-        <artifactId>maven-jar-plugin</artifactId>
-        <executions>
-          <execution>
-            <goals>
-              <goal>test-jar</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
-      <plugin>
-        <artifactId>maven-source-plugin</artifactId>
-        <executions>
-          <execution>
-            <goals>
-              <goal>test-jar-no-fork</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
-    </plugins>
-  </build>
-
 </project>
similarity index 96%
rename from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/DefaultSessionIdProvider.java
rename to protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/DefaultSessionIdProvider.java
index ad0ddf89381ed9f38510c795ebd56e3550cb0473..29badad0ebbc4e2e81236f4dafb6b248a0090d48 100644 (file)
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.netconf.impl;
+package org.opendaylight.netconf.server;
 
 import java.util.concurrent.atomic.AtomicLong;
 import javax.inject.Inject;
similarity index 73%
rename from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/NetconfServerDispatcherImpl.java
rename to protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/NetconfServerDispatcherImpl.java
index e740655069fdce168466f2f4c8d4f17b45b647d4..70a2c91cb191df1f9506af5f63fabeb4f9aaf667 100644 (file)
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.netconf.impl;
+package org.opendaylight.netconf.server;
 
 import io.netty.channel.ChannelFuture;
 import io.netty.channel.EventLoopGroup;
@@ -17,22 +17,21 @@ import org.opendaylight.netconf.nettyutil.AbstractNetconfDispatcher;
 
 public class NetconfServerDispatcherImpl extends AbstractNetconfDispatcher<NetconfServerSession,
         NetconfServerSessionListener> implements NetconfServerDispatcher {
-
     private final ServerChannelInitializer initializer;
 
-    public NetconfServerDispatcherImpl(ServerChannelInitializer serverChannelInitializer, EventLoopGroup bossGroup,
-                                       EventLoopGroup workerGroup) {
+    public NetconfServerDispatcherImpl(final ServerChannelInitializer serverChannelInitializer,
+            final EventLoopGroup bossGroup, final EventLoopGroup workerGroup) {
         super(bossGroup, workerGroup);
-        this.initializer = serverChannelInitializer;
+        initializer = serverChannelInitializer;
     }
 
     @Override
-    public ChannelFuture createServer(InetSocketAddress address) {
+    public ChannelFuture createServer(final InetSocketAddress address) {
         return super.createServer(address, initializer::initialize);
     }
 
     @Override
-    public ChannelFuture createLocalServer(LocalAddress address) {
+    public ChannelFuture createLocalServer(final LocalAddress address) {
         return super.createServer(address, LocalServerChannel.class, initializer::initialize);
     }
 }
similarity index 96%
rename from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/NetconfServerSession.java
rename to protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/NetconfServerSession.java
index dd2961193d88b3c81c341f151e5a2ef01966dfbe..f9a933951d96ae90616822d18068ef35dcf342d8 100644 (file)
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.netconf.impl;
+package org.opendaylight.netconf.server;
 
 import static com.google.common.base.Preconditions.checkState;
 import static com.google.common.base.Verify.verify;
@@ -48,19 +48,15 @@ import org.slf4j.LoggerFactory;
 
 public final class NetconfServerSession extends AbstractNetconfSession<NetconfServerSession,
         NetconfServerSessionListener> implements NetconfManagementSession {
-
     private static final Logger LOG = LoggerFactory.getLogger(NetconfServerSession.class);
     private static final DateTimeFormatter DATE_FORMATTER = DateTimeFormatter.ISO_OFFSET_DATE_TIME;
-
-    private static final String DATE_TIME_PATTERN_STRING;
+    private static final Pattern DATE_TIME_PATTERN;
 
     static {
         verify(DateAndTime.PATTERN_CONSTANTS.size() == 1);
-        DATE_TIME_PATTERN_STRING = DateAndTime.PATTERN_CONSTANTS.get(0);
+        DATE_TIME_PATTERN = Pattern.compile(DateAndTime.PATTERN_CONSTANTS.get(0));
     }
 
-    private static final Pattern DATE_TIME_PATTERN = Pattern.compile(DATE_TIME_PATTERN_STRING);
-
     private final NetconfHelloMessageAdditionalHeader header;
     private final NetconfServerSessionListener sessionListener;
 
similarity index 97%
rename from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/NetconfServerSessionListener.java
rename to protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/NetconfServerSessionListener.java
index 141edb98d36a88f23261c92e56b6d2ca1ee663af..4fe0d1aa2e5e19a16da4250dae4e39a05c71f2e6 100644 (file)
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.netconf.impl;
+package org.opendaylight.netconf.server;
 
 import com.google.common.base.Preconditions;
 import com.google.common.collect.ImmutableMap;
@@ -18,8 +18,8 @@ import org.opendaylight.netconf.api.monitoring.SessionEvent;
 import org.opendaylight.netconf.api.monitoring.SessionListener;
 import org.opendaylight.netconf.api.xml.XmlNetconfConstants;
 import org.opendaylight.netconf.api.xml.XmlUtil;
-import org.opendaylight.netconf.impl.osgi.NetconfOperationRouter;
 import org.opendaylight.netconf.notifications.NetconfNotification;
+import org.opendaylight.netconf.server.osgi.NetconfOperationRouter;
 import org.opendaylight.netconf.util.messages.SubtreeFilter;
 import org.opendaylight.yangtools.yang.common.ErrorSeverity;
 import org.opendaylight.yangtools.yang.common.ErrorTag;
@@ -31,8 +31,8 @@ import org.w3c.dom.NamedNodeMap;
 import org.w3c.dom.Node;
 
 public class NetconfServerSessionListener implements NetconfSessionListener<NetconfServerSession> {
-
     private static final Logger LOG = LoggerFactory.getLogger(NetconfServerSessionListener.class);
+
     private final SessionListener monitoringSessionListener;
     private final NetconfOperationRouter operationRouter;
     private final AutoCloseable onSessionDownCloseable;
@@ -41,7 +41,7 @@ public class NetconfServerSessionListener implements NetconfSessionListener<Netc
                                         final NetconfMonitoringService monitoringService,
                                         final AutoCloseable onSessionDownCloseable) {
         this.operationRouter = operationRouter;
-        this.monitoringSessionListener = monitoringService.getSessionListener();
+        monitoringSessionListener = monitoringService.getSessionListener();
         this.onSessionDownCloseable = onSessionDownCloseable;
     }
 
similarity index 98%
rename from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/NetconfServerSessionNegotiator.java
rename to protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/NetconfServerSessionNegotiator.java
index efd48b08310b9f77a52ffa805471068490e260fb..ab60af2aeae9ab0edb4d86ab9cc0b4c10547af4a 100644 (file)
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.netconf.impl;
+package org.opendaylight.netconf.server;
 
 import io.netty.channel.Channel;
 import io.netty.channel.local.LocalAddress;
similarity index 97%
rename from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/NetconfServerSessionNegotiatorFactory.java
rename to protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/NetconfServerSessionNegotiatorFactory.java
index 385f20fc7b31dd4c5f4219d2d41246e9c30cb806..f3908b2ae3c77392ad831dd28e16e65f9725b4bd 100644 (file)
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.netconf.impl;
+package org.opendaylight.netconf.server;
 
 import com.google.common.base.Preconditions;
 import com.google.common.collect.Collections2;
@@ -21,12 +21,12 @@ import org.opendaylight.netconf.api.NetconfSessionListenerFactory;
 import org.opendaylight.netconf.api.messages.NetconfHelloMessage;
 import org.opendaylight.netconf.api.monitoring.NetconfMonitoringService;
 import org.opendaylight.netconf.api.xml.XmlNetconfConstants;
-import org.opendaylight.netconf.impl.osgi.NetconfOperationRouter;
-import org.opendaylight.netconf.impl.osgi.NetconfOperationRouterImpl;
 import org.opendaylight.netconf.mapping.api.NetconfOperationService;
 import org.opendaylight.netconf.mapping.api.NetconfOperationServiceFactory;
 import org.opendaylight.netconf.nettyutil.AbstractNetconfSessionNegotiator;
 import org.opendaylight.netconf.nettyutil.NetconfSessionNegotiatorFactory;
+import org.opendaylight.netconf.server.osgi.NetconfOperationRouter;
+import org.opendaylight.netconf.server.osgi.NetconfOperationRouterImpl;
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Uri;
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.netconf.monitoring.rev101004.netconf.state.Capabilities;
 
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.netconf.impl;
+package org.opendaylight.netconf.server;
 
 import static com.google.common.base.Preconditions.checkArgument;
 import static java.util.Objects.requireNonNull;
similarity index 97%
rename from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/SendErrorExceptionUtil.java
rename to protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/SendErrorExceptionUtil.java
index b119c3738bdf72a23df93c051a890e13f2171cf6..63cb3194a2ebe8c8a5365dbc57a7b99719571643 100644 (file)
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.netconf.impl;
+package org.opendaylight.netconf.server;
 
 import com.google.common.base.Preconditions;
 import io.netty.channel.Channel;
@@ -28,11 +28,10 @@ public final class SendErrorExceptionUtil {
     private static final Logger LOG = LoggerFactory.getLogger(SendErrorExceptionUtil.class);
 
     private SendErrorExceptionUtil() {
-
+        // Hidden on purpose
     }
 
-    public static void sendErrorMessage(final NetconfSession session,
-            final DocumentedException sendErrorException) {
+    public static void sendErrorMessage(final NetconfSession session, final DocumentedException sendErrorException) {
         LOG.trace("Sending error", sendErrorException);
         final Document errorDocument = createDocument(sendErrorException);
         ChannelFuture channelFuture = session.sendMessage(new NetconfMessage(errorDocument));
similarity index 92%
rename from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/ServerChannelInitializer.java
rename to protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/ServerChannelInitializer.java
index d75c665d8bad46faaaba8405b7ae59b58ae58d27..52dc7d075101ee0c83bec4f8854615c9a414d233 100644 (file)
@@ -5,14 +5,14 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.netconf.impl;
+package org.opendaylight.netconf.server;
 
 import static java.util.Objects.requireNonNull;
 
 import io.netty.channel.Channel;
 import io.netty.util.concurrent.Promise;
-import org.opendaylight.netconf.impl.util.DeserializerExceptionHandler;
 import org.opendaylight.netconf.nettyutil.AbstractChannelInitializer;
+import org.opendaylight.netconf.server.util.DeserializerExceptionHandler;
 
 public final class ServerChannelInitializer extends AbstractChannelInitializer<NetconfServerSession> {
     private static final String DESERIALIZER_EX_HANDLER_KEY = "deserializerExHandler";
similarity index 90%
rename from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/SessionIdProvider.java
rename to protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/SessionIdProvider.java
index b9d4e0c8433db42005c7d4357616be65d3f80b8c..cf1f9e53eb9429d6cf3226cd0e98bfc20624041e 100644 (file)
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.netconf.impl;
+package org.opendaylight.netconf.server;
 
 public interface SessionIdProvider {
 
similarity index 94%
rename from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/mapping/operations/DefaultCloseSession.java
rename to protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/mapping/operations/DefaultCloseSession.java
index 7fe49959e89f035e606695df86a21d0fa0d10371..02fde45c912e9365b83fd23cbd7acfe49dfaae4e 100644 (file)
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.netconf.impl.mapping.operations;
+package org.opendaylight.netconf.server.mapping.operations;
 
 import static java.util.Objects.requireNonNull;
 
@@ -13,7 +13,7 @@ import java.util.Map;
 import org.opendaylight.netconf.api.DocumentedException;
 import org.opendaylight.netconf.api.xml.XmlElement;
 import org.opendaylight.netconf.api.xml.XmlNetconfConstants;
-import org.opendaylight.netconf.impl.NetconfServerSession;
+import org.opendaylight.netconf.server.NetconfServerSession;
 import org.opendaylight.netconf.util.mapping.AbstractSingletonNetconfOperation;
 import org.opendaylight.yangtools.yang.common.ErrorSeverity;
 import org.opendaylight.yangtools.yang.common.ErrorTag;
@@ -65,6 +65,6 @@ public class DefaultCloseSession extends AbstractSingletonNetconfOperation imple
 
     @Override
     public void setNetconfSession(final NetconfServerSession netconfServerSession) {
-        this.session = netconfServerSession;
+        session = netconfServerSession;
     }
 }
@@ -5,9 +5,9 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.netconf.impl.mapping.operations;
+package org.opendaylight.netconf.server.mapping.operations;
 
-import org.opendaylight.netconf.impl.NetconfServerSession;
+import org.opendaylight.netconf.server.NetconfServerSession;
 
 public interface DefaultNetconfOperation {
     void setNetconfSession(NetconfServerSession netconfServerSession);
similarity index 96%
rename from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/mapping/operations/DefaultStartExi.java
rename to protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/mapping/operations/DefaultStartExi.java
index 65c2168ff68517e77b5f55a3b4bd83b2bc3eb947..4f7150a19ce89abf39d1eb754ba031f2ab7143ff 100644 (file)
@@ -5,15 +5,15 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.netconf.impl.mapping.operations;
+package org.opendaylight.netconf.server.mapping.operations;
 
 import org.opendaylight.netconf.api.DocumentedException;
 import org.opendaylight.netconf.api.NetconfMessage;
 import org.opendaylight.netconf.api.xml.XmlElement;
 import org.opendaylight.netconf.api.xml.XmlNetconfConstants;
 import org.opendaylight.netconf.api.xml.XmlUtil;
-import org.opendaylight.netconf.impl.NetconfServerSession;
 import org.opendaylight.netconf.mapping.api.NetconfOperationChainedExecution;
+import org.opendaylight.netconf.server.NetconfServerSession;
 import org.opendaylight.netconf.util.mapping.AbstractSingletonNetconfOperation;
 import org.opendaylight.yangtools.yang.common.ErrorSeverity;
 import org.opendaylight.yangtools.yang.common.ErrorTag;
similarity index 78%
rename from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/mapping/operations/DefaultStopExi.java
rename to protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/mapping/operations/DefaultStopExi.java
index cd2d0f1e93c32cb96e53ef8d4918b979cfed969a..30de1e854afd8e10cc7d3f40d47eff0e548cd30c 100644 (file)
@@ -5,12 +5,12 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.netconf.impl.mapping.operations;
+package org.opendaylight.netconf.server.mapping.operations;
 
 import org.opendaylight.netconf.api.xml.XmlElement;
 import org.opendaylight.netconf.api.xml.XmlNetconfConstants;
 import org.opendaylight.netconf.api.xml.XmlUtil;
-import org.opendaylight.netconf.impl.NetconfServerSession;
+import org.opendaylight.netconf.server.NetconfServerSession;
 import org.opendaylight.netconf.util.mapping.AbstractSingletonNetconfOperation;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -25,13 +25,12 @@ public class DefaultStopExi extends AbstractSingletonNetconfOperation implements
     private static final Logger LOG = LoggerFactory
             .getLogger(DefaultStopExi.class);
 
-    public DefaultStopExi(String netconfSessionIdForReporting) {
+    public DefaultStopExi(final String netconfSessionIdForReporting) {
         super(netconfSessionIdForReporting);
     }
 
     @Override
-    protected Element handleWithNoSubsequentOperations(Document document,
-                                                       XmlElement operationElement) {
+    protected Element handleWithNoSubsequentOperations(final Document document, final XmlElement operationElement) {
         LOG.debug("Received stop-exi message {} ", XmlUtil.toString(operationElement));
 
         netconfSession.stopExiCommunication();
@@ -53,7 +52,7 @@ public class DefaultStopExi extends AbstractSingletonNetconfOperation implements
     }
 
     @Override
-    public void setNetconfSession(NetconfServerSession netconfServerSession) {
-        this.netconfSession = netconfServerSession;
+    public void setNetconfSession(final NetconfServerSession netconfServerSession) {
+        netconfSession = netconfServerSession;
     }
 }
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.netconf.impl.osgi;
+package org.opendaylight.netconf.server.osgi;
 
 import com.google.common.collect.HashMultimap;
 import com.google.common.collect.ImmutableSet;
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.netconf.impl.osgi;
+package org.opendaylight.netconf.server.osgi;
 
 import static com.google.common.base.Preconditions.checkState;
 import static org.opendaylight.netconf.api.xml.XmlNetconfConstants.URN_IETF_PARAMS_NETCONF_CAPABILITY_CANDIDATE_1_0;
similarity index 98%
rename from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/osgi/NetconfMonitoringServiceImpl.java
rename to protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/osgi/NetconfMonitoringServiceImpl.java
index d60bf5a6fb3d221b94e7544099660b5a1cb867b4..dc621122063624a03d5da7a53777272e2b7da464 100644 (file)
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.netconf.impl.osgi;
+package org.opendaylight.netconf.server.osgi;
 
 import java.util.Optional;
 import org.opendaylight.controller.config.threadpool.ScheduledThreadPool;
@@ -19,7 +19,6 @@ import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.netconf.mon
 import org.opendaylight.yangtools.concepts.Registration;
 
 public class NetconfMonitoringServiceImpl implements NetconfMonitoringService, AutoCloseable {
-
     private final NetconfCapabilityMonitoringService capabilityMonitoring;
     private final NetconfSessionMonitoringService sessionMonitoring;
 
similarity index 76%
rename from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/osgi/NetconfOperationRouter.java
rename to protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/osgi/NetconfOperationRouter.java
index 1e07ed2d61bef206eea5961572a11d4d1450ce33..91ec67b107000222f214d2590deb61acd097b0e5 100644 (file)
@@ -5,17 +5,13 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-
-package org.opendaylight.netconf.impl.osgi;
+package org.opendaylight.netconf.server.osgi;
 
 import org.opendaylight.netconf.api.DocumentedException;
-import org.opendaylight.netconf.impl.NetconfServerSession;
+import org.opendaylight.netconf.server.NetconfServerSession;
 import org.w3c.dom.Document;
 
 public interface NetconfOperationRouter extends AutoCloseable {
 
-    Document onNetconfMessage(Document message, NetconfServerSession session)
-            throws DocumentedException;
-
-
+    Document onNetconfMessage(Document message, NetconfServerSession session) throws DocumentedException;
 }
similarity index 96%
rename from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/osgi/NetconfOperationRouterImpl.java
rename to protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/osgi/NetconfOperationRouterImpl.java
index b1ab4b26de966af71f94fdeb8019d8eed1ebf04e..9ba53977c5539cc151135da67eb600d65e0dbb42 100644 (file)
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.netconf.impl.osgi;
+package org.opendaylight.netconf.server.osgi;
 
 import static com.google.common.base.Preconditions.checkState;
 import static java.util.Objects.requireNonNull;
@@ -20,16 +20,16 @@ import java.util.TreeMap;
 import org.opendaylight.netconf.api.DocumentedException;
 import org.opendaylight.netconf.api.monitoring.NetconfMonitoringService;
 import org.opendaylight.netconf.api.xml.XmlUtil;
-import org.opendaylight.netconf.impl.NetconfServerSession;
-import org.opendaylight.netconf.impl.mapping.operations.DefaultCloseSession;
-import org.opendaylight.netconf.impl.mapping.operations.DefaultNetconfOperation;
-import org.opendaylight.netconf.impl.mapping.operations.DefaultStartExi;
-import org.opendaylight.netconf.impl.mapping.operations.DefaultStopExi;
 import org.opendaylight.netconf.mapping.api.HandlingPriority;
 import org.opendaylight.netconf.mapping.api.NetconfOperation;
 import org.opendaylight.netconf.mapping.api.NetconfOperationChainedExecution;
 import org.opendaylight.netconf.mapping.api.NetconfOperationService;
 import org.opendaylight.netconf.mapping.api.SessionAwareNetconfOperation;
+import org.opendaylight.netconf.server.NetconfServerSession;
+import org.opendaylight.netconf.server.mapping.operations.DefaultCloseSession;
+import org.opendaylight.netconf.server.mapping.operations.DefaultNetconfOperation;
+import org.opendaylight.netconf.server.mapping.operations.DefaultStartExi;
+import org.opendaylight.netconf.server.mapping.operations.DefaultStopExi;
 import org.opendaylight.yangtools.yang.common.ErrorSeverity;
 import org.opendaylight.yangtools.yang.common.ErrorTag;
 import org.opendaylight.yangtools.yang.common.ErrorType;
@@ -38,8 +38,8 @@ import org.slf4j.LoggerFactory;
 import org.w3c.dom.Document;
 
 public class NetconfOperationRouterImpl implements NetconfOperationRouter {
-
     private static final Logger LOG = LoggerFactory.getLogger(NetconfOperationRouterImpl.class);
+
     private final NetconfOperationService netconfOperationServiceSnapshot;
     private final Collection<NetconfOperation> allNetconfOperations;
 
similarity index 99%
rename from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/osgi/NetconfSessionMonitoringService.java
rename to protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/osgi/NetconfSessionMonitoringService.java
index 1cea62c0fdae50b5d2b3b5bebc239f057bf4e5d1..149d8c2fced464896b22f91e9fefe1188177893c 100644 (file)
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.netconf.impl.osgi;
+package org.opendaylight.netconf.server.osgi;
 
 import com.google.common.base.Preconditions;
 import com.google.common.collect.Collections2;
similarity index 93%
rename from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/util/DeserializerExceptionHandler.java
rename to protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/util/DeserializerExceptionHandler.java
index 6deea762f4697514adf7a7740b59398b733c19ea..03651ea1b3119f707a507d0055c4e3a3610eb45b 100644 (file)
@@ -5,13 +5,13 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.netconf.impl.util;
+package org.opendaylight.netconf.server.util;
 
 import io.netty.channel.ChannelHandlerContext;
 import io.netty.channel.ChannelInboundHandlerAdapter;
 import java.util.Map;
 import org.opendaylight.netconf.api.DocumentedException;
-import org.opendaylight.netconf.impl.SendErrorExceptionUtil;
+import org.opendaylight.netconf.server.SendErrorExceptionUtil;
 import org.opendaylight.yangtools.yang.common.ErrorSeverity;
 import org.opendaylight.yangtools.yang.common.ErrorTag;
 import org.opendaylight.yangtools.yang.common.ErrorType;
similarity index 97%
rename from protocol/netconf-impl/src/test/java/org/opendaylight/netconf/impl/AdditionalHeaderParserTest.java
rename to protocol/netconf-server/src/test/java/org/opendaylight/netconf/server/AdditionalHeaderParserTest.java
index 3edd91d3ae57ad909eb55cf1b3c121ce2e8149ce..7c19ae853262239028cc25e08188d20a13b69734 100644 (file)
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.netconf.impl;
+package org.opendaylight.netconf.server;
 
 import static org.junit.Assert.assertEquals;
 
similarity index 99%
rename from protocol/netconf-impl/src/test/java/org/opendaylight/netconf/impl/ConcurrentClientsTest.java
rename to protocol/netconf-server/src/test/java/org/opendaylight/netconf/server/ConcurrentClientsTest.java
index 1b45cfaa5387028026a8eb9257958da5d790e576..8884955de4a0fe58b001b795db0961f0797e8008 100644 (file)
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.netconf.impl;
+package org.opendaylight.netconf.server;
 
 import static com.google.common.base.Preconditions.checkState;
 import static java.util.Objects.requireNonNull;
@@ -62,7 +62,6 @@ import org.opendaylight.netconf.client.SimpleNetconfClientSessionListener;
 import org.opendaylight.netconf.client.TestingNetconfClient;
 import org.opendaylight.netconf.client.conf.NetconfClientConfiguration;
 import org.opendaylight.netconf.client.conf.NetconfClientConfigurationBuilder;
-import org.opendaylight.netconf.impl.osgi.AggregatedNetconfOperationServiceFactory;
 import org.opendaylight.netconf.mapping.api.HandlingPriority;
 import org.opendaylight.netconf.mapping.api.NetconfOperation;
 import org.opendaylight.netconf.mapping.api.NetconfOperationChainedExecution;
@@ -70,6 +69,7 @@ import org.opendaylight.netconf.mapping.api.NetconfOperationService;
 import org.opendaylight.netconf.mapping.api.NetconfOperationServiceFactory;
 import org.opendaylight.netconf.nettyutil.NeverReconnectStrategy;
 import org.opendaylight.netconf.nettyutil.handler.exi.NetconfStartExiMessage;
+import org.opendaylight.netconf.server.osgi.AggregatedNetconfOperationServiceFactory;
 import org.opendaylight.netconf.util.messages.NetconfMessageUtil;
 import org.opendaylight.netconf.util.test.XmlFileLoader;
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.netconf.monitoring.rev101004.netconf.state.CapabilitiesBuilder;
similarity index 94%
rename from protocol/netconf-impl/src/test/java/org/opendaylight/netconf/impl/ExiEncodeDecodeTest.java
rename to protocol/netconf-server/src/test/java/org/opendaylight/netconf/server/ExiEncodeDecodeTest.java
index 2fe0d5173cacce09349663f0505bd28b4edb38cd..c28c98188ea447152a1bee8eee1d1a2448f5fbcf 100644 (file)
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.netconf.impl;
+package org.opendaylight.netconf.server;
 
 import static org.junit.Assert.assertNotNull;
 
@@ -20,7 +20,7 @@ public class ExiEncodeDecodeTest {
         String startExiString = XmlFileLoader.xmlFileToString("netconfMessages/startExi.xml");
         assertNotNull(startExiString);
 
-        NetconfMessage startExiMessage = XmlFileLoader.xmlFileToNetconfMessage(("netconfMessages/startExi.xml"));
+        NetconfMessage startExiMessage = XmlFileLoader.xmlFileToNetconfMessage("netconfMessages/startExi.xml");
         assertNotNull(startExiMessage);
 
         /*
similarity index 99%
rename from protocol/netconf-impl/src/test/java/org/opendaylight/netconf/impl/MessageParserTest.java
rename to protocol/netconf-server/src/test/java/org/opendaylight/netconf/server/MessageParserTest.java
index 06b76a213dff55ba3753d508e834d1d01f7c2be5..87f0be168b71e520d734ecfb146dcb44ef1d2974 100644 (file)
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.netconf.impl;
+package org.opendaylight.netconf.server;
 
 import static org.custommonkey.xmlunit.XMLAssert.assertXMLEqual;
 import static org.junit.Assert.assertArrayEquals;
similarity index 94%
rename from protocol/netconf-impl/src/test/java/org/opendaylight/netconf/impl/NetconfDispatcherImplTest.java
rename to protocol/netconf-server/src/test/java/org/opendaylight/netconf/server/NetconfDispatcherImplTest.java
index af5ce49e1e3de3ba5d85ece2095ce3d6e0a301b3..42a9d4b27711b7f33c939e137229204afede4e8e 100644 (file)
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.netconf.impl;
+package org.opendaylight.netconf.server;
 
 import io.netty.channel.ChannelFuture;
 import io.netty.channel.EventLoopGroup;
@@ -15,7 +15,7 @@ import java.net.InetSocketAddress;
 import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
-import org.opendaylight.netconf.impl.osgi.AggregatedNetconfOperationServiceFactory;
+import org.opendaylight.netconf.server.osgi.AggregatedNetconfOperationServiceFactory;
 
 public class NetconfDispatcherImplTest {
     private EventLoopGroup nettyGroup;
similarity index 98%
rename from protocol/netconf-impl/src/test/java/org/opendaylight/netconf/impl/NetconfServerSessionListenerTest.java
rename to protocol/netconf-server/src/test/java/org/opendaylight/netconf/server/NetconfServerSessionListenerTest.java
index 80ce81a1426934b166f09d82d543813cebebe746..6cf9240284dc0a611e15a96296abfabfa8a9c8c2 100644 (file)
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.netconf.impl;
+package org.opendaylight.netconf.server;
 
 import static org.junit.Assert.assertThrows;
 import static org.junit.Assert.assertTrue;
@@ -32,13 +32,12 @@ import org.opendaylight.netconf.api.monitoring.NetconfMonitoringService;
 import org.opendaylight.netconf.api.monitoring.SessionEvent;
 import org.opendaylight.netconf.api.monitoring.SessionListener;
 import org.opendaylight.netconf.api.xml.XmlUtil;
-import org.opendaylight.netconf.impl.osgi.NetconfOperationRouter;
 import org.opendaylight.netconf.notifications.NetconfNotification;
+import org.opendaylight.netconf.server.osgi.NetconfOperationRouter;
 import org.w3c.dom.Document;
 
 @RunWith(MockitoJUnitRunner.StrictStubs.class)
 public class NetconfServerSessionListenerTest {
-
     @Mock
     private NetconfOperationRouter router;
     @Mock
similarity index 71%
rename from protocol/netconf-impl/src/test/java/org/opendaylight/netconf/impl/NetconfServerSessionNegotiatorTest.java
rename to protocol/netconf-server/src/test/java/org/opendaylight/netconf/server/NetconfServerSessionNegotiatorTest.java
index 6e51922904da87020224d21a12f9f7f7c607f9d8..3fbf785d77022162f2e68fa613bf0d1e38d9b3f1 100644 (file)
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.netconf.impl;
+package org.opendaylight.netconf.server;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
@@ -24,27 +24,21 @@ public class NetconfServerSessionNegotiatorTest {
         assertNotNull(NetconfServerSessionNegotiator.getHostName(socketAddress));
 
         assertEquals(socketAddress.getHostName(),
-                NetconfServerSessionNegotiator.getHostName(socketAddress)
-                        .getValue());
+            NetconfServerSessionNegotiator.getHostName(socketAddress).getValue());
 
         socketAddress = new InetSocketAddress("TestPortInet", 20);
 
         assertEquals(socketAddress.getHostName(),
-                NetconfServerSessionNegotiator.getHostName(socketAddress)
-                        .getValue());
+            NetconfServerSessionNegotiator.getHostName(socketAddress).getValue());
 
         assertEquals(String.valueOf(socketAddress.getPort()),
-                NetconfServerSessionNegotiator.getHostName(socketAddress)
-                        .getKey());
+            NetconfServerSessionNegotiator.getHostName(socketAddress).getKey());
 
         LocalAddress localAddress = new LocalAddress("TestPortLocal");
 
         assertEquals(String.valueOf(localAddress.id()),
-                NetconfServerSessionNegotiator.getHostName(localAddress)
-                        .getValue());
-
-        SshdSocketAddress embeddedAddress = new SshdSocketAddress(
-                "TestSshdName", 10);
+            NetconfServerSessionNegotiator.getHostName(localAddress).getValue());
 
+        SshdSocketAddress embeddedAddress = new SshdSocketAddress("TestSshdName", 10);
     }
 }
similarity index 99%
rename from protocol/netconf-impl/src/test/java/org/opendaylight/netconf/impl/NetconfServerSessionTest.java
rename to protocol/netconf-server/src/test/java/org/opendaylight/netconf/server/NetconfServerSessionTest.java
index 8b48cb2dc6ea574c8d6d1065310ebe4a2f346e31..ae2c46be5915d6b25cfa37372b99660d1bdc620d 100644 (file)
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.netconf.impl;
+package org.opendaylight.netconf.server;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
similarity index 98%
rename from protocol/netconf-impl/src/test/java/org/opendaylight/netconf/impl/SendErrorExceptionUtilTest.java
rename to protocol/netconf-server/src/test/java/org/opendaylight/netconf/server/SendErrorExceptionUtilTest.java
index 5dbd480f60d130b2976e7de5e551d78db9c885c9..be45be0db25c7fc9fec8fc730b246b6ed8c3c7fd 100644 (file)
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.netconf.impl;
+package org.opendaylight.netconf.server;
 
 import static java.util.Objects.requireNonNull;
 import static org.junit.Assert.assertEquals;
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.netconf.impl.mapping.operations;
+package org.opendaylight.netconf.server.mapping.operations;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertSame;
@@ -31,8 +31,8 @@ import org.opendaylight.netconf.api.NetconfTerminationReason;
 import org.opendaylight.netconf.api.messages.NetconfHelloMessageAdditionalHeader;
 import org.opendaylight.netconf.api.xml.XmlElement;
 import org.opendaylight.netconf.api.xml.XmlUtil;
-import org.opendaylight.netconf.impl.NetconfServerSession;
-import org.opendaylight.netconf.impl.NetconfServerSessionListener;
+import org.opendaylight.netconf.server.NetconfServerSession;
+import org.opendaylight.netconf.server.NetconfServerSessionListener;
 import org.w3c.dom.Document;
 
 public class DefaultCloseSessionTest {
@@ -78,10 +78,10 @@ public class DefaultCloseSessionTest {
         close.setNetconfSession(session);
         close.handleWithNoSubsequentOperations(doc, elem);
         // Fake close response to trigger delayed close
-        session.sendMessage(new NetconfMessage(XmlUtil.readXmlToDocument("<rpc-reply message-id=\"101\"\n"
-                + "xmlns=\"urn:ietf:params:xml:ns:netconf:base:1.0\">\n"
-                + "<ok/>\n"
-                + "</rpc-reply>")));
+        session.sendMessage(new NetconfMessage(XmlUtil.readXmlToDocument("""
+            <rpc-reply message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
+              <ok/>
+            </rpc-reply>""")));
         verify(channel).close();
         verify(listener).onSessionTerminated(any(NetconfServerSession.class), any(NetconfTerminationReason.class));
     }
similarity index 94%
rename from protocol/netconf-impl/src/test/java/org/opendaylight/netconf/impl/mapping/operations/DefaultStopExiTest.java
rename to protocol/netconf-server/src/test/java/org/opendaylight/netconf/server/mapping/operations/DefaultStopExiTest.java
index 527006b2285daec698d018c4cbc9a5af0aea0e99..318367ca4bc128745a96f8207a28d743f443b897 100644 (file)
@@ -5,8 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-
-package org.opendaylight.netconf.impl.mapping.operations;
+package org.opendaylight.netconf.server.mapping.operations;
 
 import static org.junit.Assert.assertNotNull;
 import static org.mockito.ArgumentMatchers.any;
@@ -22,7 +21,7 @@ import io.netty.channel.ChannelPipeline;
 import org.junit.Test;
 import org.opendaylight.netconf.api.xml.XmlElement;
 import org.opendaylight.netconf.api.xml.XmlUtil;
-import org.opendaylight.netconf.impl.NetconfServerSession;
+import org.opendaylight.netconf.server.NetconfServerSession;
 import org.w3c.dom.Document;
 
 public class DefaultStopExiTest {
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.netconf.impl.osgi;
+package org.opendaylight.netconf.server.osgi;
 
 import static org.junit.Assert.assertEquals;
 import static org.mockito.Mockito.doNothing;
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.netconf.impl.osgi;
+package org.opendaylight.netconf.server.osgi;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertFalse;
similarity index 96%
rename from protocol/netconf-impl/src/test/java/org/opendaylight/netconf/impl/osgi/NetconfOperationRouterImplTest.java
rename to protocol/netconf-server/src/test/java/org/opendaylight/netconf/server/osgi/NetconfOperationRouterImplTest.java
index b9b2f28e125815b98f79a3cc7026468819fcfc5f..d598d649675c27c9ce86df238e4c995efe13939e 100644 (file)
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.netconf.impl.osgi;
+package org.opendaylight.netconf.server.osgi;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertFalse;
@@ -39,9 +39,8 @@ import org.xml.sax.SAXException;
 
 @RunWith(MockitoJUnitRunner.StrictStubs.class)
 public class NetconfOperationRouterImplTest {
-
-    private static final String TEST_RPC = "<rpc message-id=\"101\" "
-            + "xmlns=\"urn:ietf:params:xml:ns:netconf:base:1.0\"><test/></rpc>\n";
+    private static final String TEST_RPC =
+        "<rpc message-id=\"101\" xmlns=\"urn:ietf:params:xml:ns:netconf:base:1.0\"><test/></rpc>\n";
     private static final String MAX_PRIORITY_REPLY = "<high/>";
     private static final String DEFAULT_PRIORITY_REPLY = "<default/>";
 
@@ -122,5 +121,4 @@ public class NetconfOperationRouterImplTest {
         operationRouter.close();
         verify(operationService).close();
     }
-
 }
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.netconf.impl.osgi;
+package org.opendaylight.netconf.server.osgi;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertFalse;
@@ -45,7 +45,6 @@ import org.opendaylight.yangtools.yang.common.Uint32;
 
 @RunWith(MockitoJUnitRunner.StrictStubs.class)
 public class NetconfSessionMonitoringServiceTest {
-
     private static final Session SESSION_1 = new SessionBuilder()
             .setSessionId(Uint32.valueOf(1))
             .setSourceHost(new Host(new IpAddress(new Ipv4Address("0.0.0.0"))))
similarity index 97%
rename from protocol/netconf-impl/src/test/java/org/opendaylight/netconf/impl/util/DeserializerExceptionHandlerTest.java
rename to protocol/netconf-server/src/test/java/org/opendaylight/netconf/server/util/DeserializerExceptionHandlerTest.java
index 91f0b5451d668284eeff6f752f886a235e057f05..2a4a1dc5584d52d9ba837285475e0d1c80652225 100644 (file)
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.netconf.impl.util;
+package org.opendaylight.netconf.server.util;
 
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.Mockito.doReturn;
@@ -21,7 +21,6 @@ import org.junit.Before;
 import org.junit.Test;
 
 public class DeserializerExceptionHandlerTest {
-
     private DeserializerExceptionHandler handler;
     private ChannelFuture channelFuture;
     private ChannelHandlerContext context;
index 22408d49be272b6e681bbdecac6be1ad0abe75c3..50be4210a906476804c4a4fc9d8ccb358bc84013 100644 (file)
@@ -31,7 +31,7 @@
     <modules>
         <module>netconf-api</module>
         <module>netconf-client</module>
-        <module>netconf-impl</module>
+        <module>netconf-server</module>
         <module>netconf-util</module>
         <module>restconf-api</module>
     </modules>