X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=protocol%2Fnetconf-server%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fnetconf%2Fserver%2FNetconfServerSessionNegotiatorFactory.java;fp=protocol%2Fnetconf-server%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fnetconf%2Fserver%2FNetconfServerSessionNegotiatorFactory.java;h=6a5fde3d18f499e40eb444b47df0a44235c9656b;hb=b9ec0da5de634765a97034df88a1250d89fa12c4;hp=c6bb6abd035fc70c7a4d76df93f2fe168938d7f9;hpb=7c10f9323ef1e097632c2a624a8dfc211782a0cc;p=netconf.git diff --git a/protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/NetconfServerSessionNegotiatorFactory.java b/protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/NetconfServerSessionNegotiatorFactory.java index c6bb6abd03..6a5fde3d18 100644 --- a/protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/NetconfServerSessionNegotiatorFactory.java +++ b/protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/NetconfServerSessionNegotiatorFactory.java @@ -17,9 +17,9 @@ import io.netty.util.concurrent.Promise; import java.net.SocketAddress; import java.util.Set; import org.checkerframework.checker.index.qual.NonNegative; +import org.opendaylight.netconf.api.CapabilityURN; import org.opendaylight.netconf.api.NetconfSessionListenerFactory; import org.opendaylight.netconf.api.messages.HelloMessage; -import org.opendaylight.netconf.api.xml.XmlNetconfConstants; import org.opendaylight.netconf.nettyutil.AbstractNetconfSessionNegotiator; import org.opendaylight.netconf.nettyutil.NetconfSessionNegotiatorFactory; import org.opendaylight.netconf.server.api.SessionIdProvider; @@ -35,11 +35,10 @@ public class NetconfServerSessionNegotiatorFactory implements NetconfSessionNegotiatorFactory { public static final Set DEFAULT_BASE_CAPABILITIES = ImmutableSet.of( - XmlNetconfConstants.URN_IETF_PARAMS_NETCONF_BASE_1_0, - XmlNetconfConstants.URN_IETF_PARAMS_NETCONF_BASE_1_1, - XmlNetconfConstants.URN_IETF_PARAMS_NETCONF_CAPABILITY_EXI_1_0, - XmlNetconfConstants.URN_IETF_PARAMS_NETCONF_CAPABILITY_NOTIFICATION_1_0 - ); + CapabilityURN.BASE, + CapabilityURN.BASE_1_1, + CapabilityURN.EXI, + CapabilityURN.NOTIFICATION); private final @NonNegative int maximumIncomingChunkSize; private final Timer timer; @@ -90,7 +89,7 @@ public class NetconfServerSessionNegotiatorFactory final ImmutableSet.Builder b = ImmutableSet.builder(); b.addAll(baseCapabilities); // Base 1.0 capability is supported by default - b.add(XmlNetconfConstants.URN_IETF_PARAMS_NETCONF_BASE_1_0); + b.add(CapabilityURN.BASE); return b.build(); }