Class JctShellFactory

java.lang.Object
org.dellroad.jct.ssh.JctShellFactory
All Implemented Interfaces:
org.apache.sshd.server.shell.ShellFactory

public class JctShellFactory extends Object implements org.apache.sshd.server.shell.ShellFactory
An Apache MINA SSHD ShellFactory that connects to a Java Console Toolkit Shell instance.
  • Field Details

    • shell

      protected final Shell shell
  • Constructor Details

    • JctShellFactory

      public JctShellFactory(Shell shell)
      Constructor.
      Parameters:
      shell - the underlying shell
      Throws:
      IllegalArgumentException - if shell is null
  • Method Details

    • createShell

      public JctShellCommand createShell(org.apache.sshd.server.channel.ChannelSession channel)
      Specified by:
      createShell in interface org.apache.sshd.server.shell.ShellFactory