Merge "Move flow comparison methods into utility class"
[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.AbstractNetconfSession;
16 import org.slf4j.Logger;
17 import org.slf4j.LoggerFactory;
18
19 public final class NetconfClientSession extends AbstractNetconfSession<NetconfClientSession, NetconfClientSessionListener> {
20
21     private static final Logger logger = LoggerFactory.getLogger(NetconfClientSession.class);
22     private final Collection<String> capabilities;
23
24     public NetconfClientSession(NetconfClientSessionListener sessionListener, Channel channel, long sessionId,
25             Collection<String> capabilities) {
26         super(sessionListener,channel,sessionId);
27         this.capabilities = capabilities;
28         logger.debug("Client Session {} created", toString());
29     }
30
31     public Collection<String> getServerCapabilities() {
32         return capabilities;
33     }
34
35     @Override
36     protected NetconfClientSession thisInstance() {
37         return this;
38     }
39 }