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;fp=netconf%2Fmdsal-netconf-ssh%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fnetconf%2Fssh%2FRemoteNetconfCommand.java;h=d9ef852404eeaa11df5248841eb95ecceb558643;hb=afbc1e06f36172f790654d834ef55ac216bbfb40;hp=ed557f0b627d254ca29622e4642f717c5c3bb64a;hpb=f30e8300c31f718ec645d2c1a99808b92dd5f135;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); } }