Move NetconfHelloMessage to netconf-api
[netconf.git] / opendaylight / 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,
21                                            long sessionId) {
22         super(helloMessage);
23         this.sessionId = sessionId;
24     }
25
26     public long getSessionId() {
27         return sessionId;
28     }
29 }