X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=netconf%2Fmdsal-netconf-ssh%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fnetconf%2Fssh%2FRemoteNetconfCommand.java;h=d9ef852404eeaa11df5248841eb95ecceb558643;hb=6cc04f8a72d33b24d78aeeaa65eb8fae8217c608;hp=ed557f0b627d254ca29622e4642f717c5c3bb64a;hpb=d512058bc228950fab6ede804c0b533588367dcf;p=netconf.git diff --git a/netconf/mdsal-netconf-ssh/src/main/java/org/opendaylight/netconf/ssh/RemoteNetconfCommand.java b/netconf/mdsal-netconf-ssh/src/main/java/org/opendaylight/netconf/ssh/RemoteNetconfCommand.java index ed557f0b62..d9ef852404 100644 --- a/netconf/mdsal-netconf-ssh/src/main/java/org/opendaylight/netconf/ssh/RemoteNetconfCommand.java +++ b/netconf/mdsal-netconf-ssh/src/main/java/org/opendaylight/netconf/ssh/RemoteNetconfCommand.java @@ -21,7 +21,6 @@ import java.io.OutputStream; import java.net.InetSocketAddress; import java.net.SocketAddress; import org.opendaylight.netconf.api.messages.NetconfHelloMessageAdditionalHeader; -import org.opendaylight.netconf.shaded.sshd.common.NamedFactory; import org.opendaylight.netconf.shaded.sshd.common.io.IoInputStream; import org.opendaylight.netconf.shaded.sshd.common.io.IoOutputStream; import org.opendaylight.netconf.shaded.sshd.server.Environment; @@ -30,6 +29,7 @@ import org.opendaylight.netconf.shaded.sshd.server.channel.ChannelSession; import org.opendaylight.netconf.shaded.sshd.server.command.AsyncCommand; import org.opendaylight.netconf.shaded.sshd.server.command.Command; import org.opendaylight.netconf.shaded.sshd.server.session.ServerSession; +import org.opendaylight.netconf.shaded.sshd.server.subsystem.SubsystemFactory; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -163,7 +163,7 @@ public class RemoteNetconfCommand implements AsyncCommand { return netconfHelloMessageAdditionalHeader.getAddress(); } - public static class NetconfCommandFactory implements NamedFactory { + public static class NetconfCommandFactory implements SubsystemFactory { public static final String NETCONF = "netconf"; @@ -182,7 +182,7 @@ public class RemoteNetconfCommand implements AsyncCommand { } @Override - public RemoteNetconfCommand create() { + public Command createSubsystem(final ChannelSession channel) { return new RemoteNetconfCommand(clientBootstrap, localAddress); } }