X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fnetconf%2Fnetconf-util%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fnetconf%2Futil%2FAbstractNetconfSession.java;h=c789206436f1eecb1fd92fc1480a027eb8943d09;hp=aa1afc025d736f154822e88dee11c89766d9bd63;hb=e159106bc148e76fc1e3e3c780bdd740d99e74ed;hpb=567792806ed799ac649cc125bffb4debde40d254 diff --git a/opendaylight/netconf/netconf-util/src/main/java/org/opendaylight/controller/netconf/util/AbstractNetconfSession.java b/opendaylight/netconf/netconf-util/src/main/java/org/opendaylight/controller/netconf/util/AbstractNetconfSession.java index aa1afc025d..c789206436 100644 --- a/opendaylight/netconf/netconf-util/src/main/java/org/opendaylight/controller/netconf/util/AbstractNetconfSession.java +++ b/opendaylight/netconf/netconf-util/src/main/java/org/opendaylight/controller/netconf/util/AbstractNetconfSession.java @@ -93,23 +93,19 @@ public abstract class AbstractNetconfSession T removeHandler(final Class handlerType) { - return this.channel.pipeline().remove(handlerType); - } - - protected void replaceMessageDecoder(final ChannelHandler handler) { + protected final void replaceMessageDecoder(final ChannelHandler handler) { replaceChannelHandler(AbstractChannelInitializer.NETCONF_MESSAGE_DECODER, handler); } - protected void replaceMessageEncoder(final ChannelHandler handler) { + protected final void replaceMessageEncoder(final ChannelHandler handler) { replaceChannelHandler(AbstractChannelInitializer.NETCONF_MESSAGE_ENCODER, handler); } - protected void replaceMessageEncoderAfterNextMessage(final ChannelHandler handler) { + protected final void replaceMessageEncoderAfterNextMessage(final ChannelHandler handler) { this.delayedEncoder = handler; } - protected void replaceChannelHandler(final String handlerName, final ChannelHandler handler) { + protected final void replaceChannelHandler(final String handlerName, final ChannelHandler handler) { channel.pipeline().replace(handlerName, handlerName, handler); } @@ -124,7 +120,7 @@ public abstract class AbstractNetconfSession