Class JctExecFactory

java.lang.Object
org.dellroad.jct.ssh.JctExecFactory
All Implemented Interfaces:
org.apache.sshd.server.command.CommandFactory

public class JctExecFactory extends Object implements org.apache.sshd.server.command.CommandFactory
An Apache MINA SSHD CommandFactory that connects to a Java Console Toolkit Exec instance.
  • Field Details

    • exec

      protected final Exec exec
  • Constructor Details

    • JctExecFactory

      public JctExecFactory(Exec exec)
      Constructor.
      Parameters:
      exec - the underlying Exec instance
      Throws:
      IllegalArgumentException - if exec is null
  • Method Details

    • createCommand

      public JctExecCommand createCommand(org.apache.sshd.server.channel.ChannelSession channel, String command) throws IOException
      Specified by:
      createCommand in interface org.apache.sshd.server.command.CommandFactory
      Throws:
      IOException