Class ShellFactoryImpl

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

    public class ShellFactoryImpl
    extends Object
    implements org.apache.sshd.server.shell.ShellFactory
    SSHD Command factory which provides access to Shell.
    • Constructor Detail

      • ShellFactoryImpl

        public ShellFactoryImpl​(org.apache.karaf.shell.api.console.SessionFactory sessionFactory)
    • Method Detail

      • createShell

        public org.apache.sshd.server.command.Command createShell​(org.apache.sshd.server.channel.ChannelSession channelSession)
        Specified by:
        createShell in interface org.apache.sshd.server.shell.ShellFactory
      • getEncoding

        public static String getEncoding​(org.apache.sshd.server.Environment env)
        Get the default encoding. Will first look at the LC_CTYPE environment variable, then the input.encoding system property, then the default charset according to the JVM.
        Returns:
        The default encoding to use when none is specified.