1. Corrected Ip Protocol match field.
[controller.git] / opendaylight / netconf / netconf-impl / src / main / java / org / opendaylight / controller / netconf / impl / NetconfServerSessionNegotiator.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.controller.netconf.impl;
10
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;
15
16 import io.netty.channel.Channel;
17 import io.netty.util.Timer;
18 import io.netty.util.concurrent.Promise;
19
20 public class NetconfServerSessionNegotiator extends
21         AbstractNetconfSessionNegotiator<NetconfServerSessionPreferences, NetconfServerSession> {
22
23     protected NetconfServerSessionNegotiator(NetconfServerSessionPreferences sessionPreferences,
24             Promise<NetconfServerSession> promise, Channel channel, Timer timer, SessionListener sessionListener) {
25         super(sessionPreferences, promise, channel, timer, sessionListener);
26     }
27
28     @Override
29     protected NetconfServerSession getSession(SessionListener sessionListener, Channel channel, Document doc) {
30         return new NetconfServerSession(sessionListener, channel, sessionPreferences.getSessionId());
31     }
32
33 }