Class AbstractChannelInitializer<S extends org.opendaylight.netconf.api.NetconfSession>
- java.lang.Object
-
- org.opendaylight.netconf.nettyutil.AbstractChannelInitializer<S>
-
public abstract class AbstractChannelInitializer<S extends org.opendaylight.netconf.api.NetconfSession> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringNETCONF_MESSAGE_AGGREGATORstatic StringNETCONF_MESSAGE_DECODERstatic StringNETCONF_MESSAGE_ENCODERstatic StringNETCONF_MESSAGE_FRAME_ENCODERstatic StringNETCONF_SESSION_NEGOTIATOR
-
Constructor Summary
Constructors Constructor Description AbstractChannelInitializer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidinitialize(io.netty.channel.Channel ch, io.netty.util.concurrent.Promise<S> promise)protected voidinitializeMessageDecoder(io.netty.channel.Channel ch)protected voidinitializeMessageEncoder(io.netty.channel.Channel ch)protected abstract voidinitializeSessionNegotiator(io.netty.channel.Channel ch, io.netty.util.concurrent.Promise<S> promise)Insert session negotiator into the pipeline.
-
-
-
Field Detail
-
NETCONF_MESSAGE_DECODER
public static final String NETCONF_MESSAGE_DECODER
- See Also:
- Constant Field Values
-
NETCONF_MESSAGE_AGGREGATOR
public static final String NETCONF_MESSAGE_AGGREGATOR
- See Also:
- Constant Field Values
-
NETCONF_MESSAGE_ENCODER
public static final String NETCONF_MESSAGE_ENCODER
- See Also:
- Constant Field Values
-
NETCONF_MESSAGE_FRAME_ENCODER
public static final String NETCONF_MESSAGE_FRAME_ENCODER
- See Also:
- Constant Field Values
-
NETCONF_SESSION_NEGOTIATOR
public static final String NETCONF_SESSION_NEGOTIATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
initialize
public void initialize(io.netty.channel.Channel ch, io.netty.util.concurrent.Promise<S> promise)
-
initializeMessageEncoder
protected void initializeMessageEncoder(io.netty.channel.Channel ch)
-
initializeMessageDecoder
protected void initializeMessageDecoder(io.netty.channel.Channel ch)
-
initializeSessionNegotiator
protected abstract void initializeSessionNegotiator(io.netty.channel.Channel ch, io.netty.util.concurrent.Promise<S> promise)Insert session negotiator into the pipeline. It must be inserted after message decoder identified byNETCONF_MESSAGE_DECODER, (or any other custom decoder processor)
-
-