Class AbstractNetconfSession<S extends NetconfSession,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>
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler,Closeable,AutoCloseable,NetconfSession
- Direct Known Subclasses:
AbstractNetconfExiSession
public abstract class AbstractNetconfSession<S extends NetconfSession,L extends NetconfSessionListener<S>>
extends io.netty.channel.SimpleChannelInboundHandler<Object>
implements NetconfSession
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractNetconfSession(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 com.google.common.base.MoreObjects.ToStringHelperaddToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper helper) final voidchannelInactive(io.netty.channel.ChannelHandlerContext ctx) protected final voidchannelRead0(io.netty.channel.ChannelHandlerContext ctx, Object msg) voidclose()protected voidprotected voidhandleError(Exception failure) protected voidhandleMessage(NetconfMessage netconfMessage) final voidhandlerAdded(io.netty.channel.ChannelHandlerContext ctx) final booleanisUp()protected final @NonNull MessageEncoderprotected final <T extends io.netty.channel.ChannelHandler>
voidreplaceChannelHandler(Class<T> type, String name, T handler) io.netty.channel.ChannelFuturesendMessage(NetconfMessage netconfMessage) final org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.netconf.base._1._0.rev110601.SessionIdTypeprotected voidprotected abstract Sfinal StringtoString()Methods 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
handlerRemoved
-
Field Details
-
channel
protected final @NonNull io.netty.channel.Channel channel
-
-
Constructor Details
-
AbstractNetconfSession
protected AbstractNetconfSession(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
-
sessionId
public final org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.netconf.base._1._0.rev110601.SessionIdType sessionId()- Specified by:
sessionIdin interfaceNetconfSession
-
thisInstance
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceNetconfSession
-
handleMessage
-
handleError
-
sendMessage
- Specified by:
sendMessagein interfaceNetconfSession
-
endOfInput
protected void endOfInput() -
sessionUp
protected void sessionUp() -
toString
-
addToStringAttributes
protected com.google.common.base.MoreObjects.ToStringHelper addToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper helper) -
replaceChannelHandler
-
messageEncoder
-
isUp
public final boolean isUp() -
channelInactive
public final void channelInactive(io.netty.channel.ChannelHandlerContext ctx) - Specified by:
channelInactivein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelInactivein classio.netty.channel.ChannelInboundHandlerAdapter
-
channelRead0
- Specified by:
channelRead0in classio.netty.channel.SimpleChannelInboundHandler<Object>
-
handlerAdded
public final void handlerAdded(io.netty.channel.ChannelHandlerContext ctx) - Specified by:
handlerAddedin interfaceio.netty.channel.ChannelHandler- Overrides:
handlerAddedin classio.netty.channel.ChannelHandlerAdapter
-