Move NetconfHelloMessage to netconf-api
[netconf.git] / opendaylight / netconf / netconf-api / src / main / java / org / opendaylight / netconf / api / NetconfClientSessionPreferences.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 NetconfClientSessionPreferences extends NetconfSessionPreferences {
17
18     private final NetconfMessage startExiMessage;
19
20     public NetconfClientSessionPreferences(final NetconfHelloMessage helloMessage,
21                                      final NetconfMessage startExiMessage) {
22         super(helloMessage);
23         this.startExiMessage = startExiMessage;
24     }
25
26     /**
27      * @return the startExiMessage
28      */
29     public NetconfMessage getStartExiMessage() {
30         return startExiMessage;
31     }
32 }