Merge "Fix a warning"
[controller.git] / opendaylight / netconf / netconf-client / src / main / java / org / opendaylight / controller / netconf / client / NetconfClientSession.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.client;
10
11 import io.netty.channel.Channel;
12
13 import java.util.Collection;
14
15 import org.opendaylight.controller.netconf.api.NetconfMessage;
16 import org.opendaylight.controller.netconf.api.NetconfSession;
17 import org.opendaylight.controller.netconf.api.NetconfTerminationReason;
18 import org.opendaylight.protocol.framework.SessionListener;
19 import org.slf4j.Logger;
20 import org.slf4j.LoggerFactory;
21
22 public class NetconfClientSession extends NetconfSession {
23
24     private static final Logger logger = LoggerFactory.getLogger(NetconfClientSession.class);
25     private final Collection<String> capabilities;
26
27     public NetconfClientSession(SessionListener<NetconfMessage, NetconfSession, NetconfTerminationReason> sessionListener, Channel channel, long sessionId,
28             Collection<String> capabilities) {
29         super(sessionListener,channel,sessionId);
30         this.capabilities = capabilities;
31         logger.debug("Client Session {} created", toString());
32     }
33
34     public Collection<String> getServerCapabilities() {
35         return capabilities;
36     }
37
38 }