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
An
AbstractNetconfSession which is also a NetconfExiSession.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Field Summary
Fields inherited from class org.opendaylight.netconf.nettyutil.AbstractNetconfSession
channel -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractNetconfExiSession(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 Summary
Modifier and TypeMethodDescriptionprotected abstract voidaddExiHandlers(MessageDecoder decoder, MessageWriter encoder) Add a set encoder/decoder tuple into the channel pipeline as appropriate.protected final voidreplaceMessageDecoder(MessageDecoder newDecoder) protected final voidsetMessageWriter(MessageWriter newWriter) protected final voidsetMessageWriterAfterNextMessage(MessageWriter newWriter) final voidstartExiCommunication(NetconfMessage startExiMessage) Methods inherited from class org.opendaylight.netconf.nettyutil.AbstractNetconfSession
addToStringAttributes, channelInactive, channelRead0, close, endOfInput, handleError, handleMessage, handlerAdded, isUp, messageEncoder, replaceChannelHandler, sendMessage, sessionId, sessionUp, thisInstance, toStringMethods inherited from class io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelReadMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerRemoved, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
handlerRemovedMethods inherited from interface org.opendaylight.netconf.api.NetconfExiSession
stopExiCommunication
-
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
- Specified by:
startExiCommunicationin interfaceNetconfExiSession
-
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 decoderencoder- EXIMessageWriter
-
replaceMessageDecoder
-
setMessageWriter
-
setMessageWriterAfterNextMessage
-