- protected NetconfServerSession getSession(SessionListener sessionListener, Channel channel, NetconfMessage message) {
- Optional<String> additionalHeader = message.getAdditionalHeader();
+ protected void handleMessage(NetconfHelloMessage netconfMessage)
+ throws NetconfDocumentedException {
+ NetconfServerSession session = getSessionForHelloMessage(netconfMessage);
+ replaceHelloMessageInboundHandler(session);
+ // Negotiation successful after all non hello messages were processed
+ negotiationSuccessful(session);
+ }
+
+ @Override
+ protected NetconfServerSession getSession(
+ NetconfServerSessionListener sessionListener, Channel channel,
+ NetconfHelloMessage message) {
+ Optional<NetconfHelloMessageAdditionalHeader> additionalHeader = message
+ .getAdditionalHeader();