2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
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
9 package org.opendaylight.controller.netconf.client;
11 import io.netty.channel.Channel;
13 import java.util.Collection;
15 import org.opendaylight.controller.netconf.api.NetconfSession;
16 import org.opendaylight.protocol.framework.SessionListener;
17 import org.slf4j.Logger;
18 import org.slf4j.LoggerFactory;
20 public class NetconfClientSession extends NetconfSession {
22 private static final Logger logger = LoggerFactory.getLogger(NetconfClientSession.class);
23 private final Collection<String> capabilities;
25 public NetconfClientSession(SessionListener sessionListener, Channel channel, long sessionId,
26 Collection<String> capabilities) {
27 super(sessionListener,channel,sessionId);
28 this.capabilities = capabilities;
29 logger.debug("Client Session {} created", toString());
32 public Collection<String> getServerCapabilities() {