Package org.apache.karaf.shell.ssh
Class ShellFactoryImpl
- java.lang.Object
-
- org.apache.karaf.shell.ssh.ShellFactoryImpl
-
- All Implemented Interfaces:
org.apache.sshd.server.shell.ShellFactory
public class ShellFactoryImpl extends Object implements org.apache.sshd.server.shell.ShellFactory
SSHDCommandfactory which provides access to Shell.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classShellFactoryImpl.ShellImpl
-
Constructor Summary
Constructors Constructor Description ShellFactoryImpl(org.apache.karaf.shell.api.console.SessionFactory sessionFactory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.sshd.server.command.CommandcreateShell(org.apache.sshd.server.channel.ChannelSession channelSession)static StringgetEncoding(org.apache.sshd.server.Environment env)Get the default encoding.
-
-
-
Method Detail
-
createShell
public org.apache.sshd.server.command.Command createShell(org.apache.sshd.server.channel.ChannelSession channelSession)
- Specified by:
createShellin interfaceorg.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.
-
-