2 * Copyright (c) 2019 PANTHEON.tech, s.r.o. 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
8 package org.opendaylight.netconf.nettyutil.handler.ssh.client;
10 import org.opendaylight.netconf.shaded.sshd.client.ClientFactoryManager;
11 import org.opendaylight.netconf.shaded.sshd.client.session.SessionFactory;
12 import org.opendaylight.netconf.shaded.sshd.common.io.IoSession;
15 * A {@link SessionFactory} which creates {@link NetconfClientSessionImpl}s.
17 @Deprecated(since = "7.0.0", forRemoval = true)
18 public class NetconfSessionFactory extends SessionFactory {
19 public NetconfSessionFactory(final ClientFactoryManager client) {
24 protected NetconfClientSessionImpl doCreateSession(final IoSession ioSession) throws Exception {
25 return new NetconfClientSessionImpl(getClient(), ioSession);