Class ShellFactoryImpl

  • All Implemented Interfaces:
    org.apache.sshd.server.shell.ShellFactory

    public class ShellFactoryImpl
    extends java.lang.Object
    implements org.apache.sshd.server.shell.ShellFactory
    SSHD Command factory which provides access to Shell.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.function.Consumer<Ssh.ShellParams> shell  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static void close​(java.io.Closeable... closeables)  
      org.apache.sshd.server.command.Command createShell​(org.apache.sshd.server.channel.ChannelSession channel)  
      private static void flush​(java.io.OutputStream... streams)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

    • Constructor Detail

      • ShellFactoryImpl

        public ShellFactoryImpl​(java.util.function.Consumer<Ssh.ShellParams> shell)
    • Method Detail

      • flush

        private static void flush​(java.io.OutputStream... streams)
      • close

        static void close​(java.io.Closeable... closeables)
      • createShell

        public org.apache.sshd.server.command.Command createShell​(org.apache.sshd.server.channel.ChannelSession channel)
                                                           throws java.io.IOException
        Specified by:
        createShell in interface org.apache.sshd.server.shell.ShellFactory
        Throws:
        java.io.IOException