Class AbstractNetconfExiSession<S extends AbstractNetconfExiSession<S,L>,L extends NetconfSessionListener<S>>

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.SimpleChannelInboundHandler<Object>
org.opendaylight.netconf.nettyutil.AbstractNetconfSession<S,L>
org.opendaylight.netconf.nettyutil.AbstractNetconfExiSession<S,L>
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler, Closeable, AutoCloseable, NetconfExiSession, NetconfSession

public abstract class AbstractNetconfExiSession<S extends AbstractNetconfExiSession<S,L>,L extends NetconfSessionListener<S>> extends AbstractNetconfSession<S,L> implements NetconfExiSession
  • Constructor Details

    • AbstractNetconfExiSession

      protected AbstractNetconfExiSession(L sessionListener, io.netty.channel.Channel channel, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.netconf.base._1._0.rev110601.SessionIdType sessionId)
  • Method Details

    • startExiCommunication

      public final void startExiCommunication(NetconfMessage startExiMessage)
      Specified by:
      startExiCommunication in interface NetconfExiSession
    • addExiHandlers

      @NonNullByDefault protected abstract void addExiHandlers(MessageDecoder decoder, MessageWriter encoder)
      Add a set encoder/decoder tuple into the channel pipeline as appropriate.
      Parameters:
      decoder - EXI decoder
      encoder - EXI MessageWriter
    • replaceMessageDecoder

      @NonNullByDefault protected final void replaceMessageDecoder(MessageDecoder newDecoder)
    • setMessageWriter

      @NonNullByDefault protected final void setMessageWriter(MessageWriter newWriter)
    • setMessageWriterAfterNextMessage

      @NonNullByDefault protected final void setMessageWriterAfterNextMessage(MessageWriter newWriter)