2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.controller.netconf.impl;
11 import org.opendaylight.controller.netconf.api.NetconfServerSessionPreferences;
12 import org.opendaylight.controller.netconf.util.AbstractNetconfSessionNegotiator;
13 import org.opendaylight.protocol.framework.SessionListener;
14 import org.w3c.dom.Document;
16 import io.netty.channel.Channel;
17 import io.netty.util.Timer;
18 import io.netty.util.concurrent.Promise;
20 public class NetconfServerSessionNegotiator extends
21 AbstractNetconfSessionNegotiator<NetconfServerSessionPreferences, NetconfServerSession> {
23 protected NetconfServerSessionNegotiator(NetconfServerSessionPreferences sessionPreferences,
24 Promise<NetconfServerSession> promise, Channel channel, Timer timer, SessionListener sessionListener) {
25 super(sessionPreferences, promise, channel, timer, sessionListener);
29 protected NetconfServerSession getSession(SessionListener sessionListener, Channel channel, Document doc) {
30 return new NetconfServerSession(sessionListener, channel, sessionPreferences.getSessionId());