Eliminate netconf.nettyutil.handler.ssh.client
[netconf.git] / netconf / netconf-netty-util / src / main / java / org / opendaylight / netconf / nettyutil / handler / ssh / client / NettyAwareClientSession.java
diff --git a/netconf/netconf-netty-util/src/main/java/org/opendaylight/netconf/nettyutil/handler/ssh/client/NettyAwareClientSession.java b/netconf/netconf-netty-util/src/main/java/org/opendaylight/netconf/nettyutil/handler/ssh/client/NettyAwareClientSession.java
deleted file mode 100644 (file)
index 904d974..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright (c) 2019 PANTHEON.tech, s.r.o. and others.  All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.netconf.nettyutil.handler.ssh.client;
-
-import io.netty.channel.ChannelHandlerContext;
-import io.netty.channel.ChannelPipeline;
-import java.io.IOException;
-import org.opendaylight.netconf.shaded.sshd.client.channel.ChannelSubsystem;
-import org.opendaylight.netconf.shaded.sshd.client.session.ClientSession;
-
-/**
- * A {@link ClientSession} which additionally allows subsystem channels which are forwarded to a particular Netty
- * channel context.
- */
-@Deprecated(since = "7.0.0", forRemoval = true)
-public interface NettyAwareClientSession extends ClientSession {
-    /**
-     * Allocate a channel to the specified subsystem. Incoming data on the channel will be routed to the
-     * specified {@link ChannelHandlerContext}.
-     *
-     * @param subsystem The subsystem name
-     * @param ctx Context to which to route data to
-     * @return The created {@link ChannelSubsystem}
-     * @throws IOException If failed to create the requested channel
-     */
-    ChannelSubsystem createSubsystemChannel(String subsystem, ChannelHandlerContext ctx) throws IOException;
-
-    /**
-     * Allocate a channel to the specified subsystem. Incoming data on the channel will be routed to the
-     * specified {@link ChannelPipeline}.
-     *
-     * @param subsystem The subsystem name
-     * @param pipeline ChannelPipeline to which to route data to
-     * @return The created {@link ChannelSubsystem}
-     * @throws IOException If failed to create the requested channel
-     */
-    ChannelSubsystem createSubsystemChannel(String subsystem, ChannelPipeline pipeline) throws IOException;
-}