AbstractNetconfSessionNegotiator uses only NetconfHelloMessage
[netconf.git] / netconf / netconf-api / src / main / java / org / opendaylight / netconf / api / NetconfServerSessionPreferences.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.netconf.api;
10
11 import org.opendaylight.netconf.api.messages.NetconfHelloMessage;
12
13 /**
14  * The only input for the start of a NETCONF session is hello-message.
15  */
16 public final class NetconfServerSessionPreferences extends NetconfSessionPreferences {
17
18     private final long sessionId;
19
20     public NetconfServerSessionPreferences(final NetconfHelloMessage helloMessage, long sessionId) {
21         super(helloMessage);
22         this.sessionId = sessionId;
23     }
24
25     public long getSessionId() {
26         return sessionId;
27     }
28 }