X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=netconf%2Fnetconf-client%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fnetconf%2Fclient%2FTcpClientChannelInitializer.java;h=85c3e0fa6460bc8d4c6973acb2b9b5a9825f7944;hb=50aba4430f250f89dcd59a480cef5980475a70cd;hp=c241e17656736052b4cbe3bf48012c8891e02ea4;hpb=57bfa6dd35ae51496e2c1aecd2ef7755b5203cba;p=netconf.git diff --git a/netconf/netconf-client/src/main/java/org/opendaylight/netconf/client/TcpClientChannelInitializer.java b/netconf/netconf-client/src/main/java/org/opendaylight/netconf/client/TcpClientChannelInitializer.java index c241e17656..85c3e0fa64 100644 --- a/netconf/netconf-client/src/main/java/org/opendaylight/netconf/client/TcpClientChannelInitializer.java +++ b/netconf/netconf-client/src/main/java/org/opendaylight/netconf/client/TcpClientChannelInitializer.java @@ -16,17 +16,11 @@ import io.netty.util.concurrent.Future; import io.netty.util.concurrent.GenericFutureListener; import io.netty.util.concurrent.Promise; import java.net.SocketAddress; -import org.opendaylight.netconf.nettyutil.AbstractChannelInitializer; - -class TcpClientChannelInitializer extends AbstractChannelInitializer { - - private final NetconfClientSessionNegotiatorFactory negotiatorFactory; - private final NetconfClientSessionListener sessionListener; +final class TcpClientChannelInitializer extends AbstractClientChannelInitializer { TcpClientChannelInitializer(final NetconfClientSessionNegotiatorFactory negotiatorFactory, - final NetconfClientSessionListener sessionListener) { - this.negotiatorFactory = negotiatorFactory; - this.sessionListener = sessionListener; + final NetconfClientSessionListener sessionListener) { + super(negotiatorFactory, sessionListener); } @Override @@ -93,10 +87,4 @@ class TcpClientChannelInitializer extends AbstractChannelInitializer promise) { - ch.pipeline().addAfter(NETCONF_MESSAGE_DECODER, AbstractChannelInitializer.NETCONF_SESSION_NEGOTIATOR, - negotiatorFactory.getSessionNegotiator(() -> sessionListener, ch, promise)); - } }