Package com.sshtools.server.vsession
Class VirtualChannelFactory
java.lang.Object
com.sshtools.server.DefaultServerChannelFactory
com.sshtools.server.vsession.VirtualChannelFactory
- All Implemented Interfaces:
com.sshtools.synergy.ssh.ChannelFactory<SshServerContext>
-
Field Summary
Fields inherited from class com.sshtools.server.DefaultServerChannelFactory
commands, LOCAL_FORWARDING_CHANNEL_TYPE
-
Constructor Summary
ConstructorsConstructorDescriptionVirtualChannelFactory
(CommandFactory<? extends ShellCommand>... factories) VirtualChannelFactory
(String shellCommand, CommandFactory<? extends ShellCommand>... factories) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.sshtools.synergy.ssh.ChannelNG<SshServerContext>
createSessionChannel
(com.sshtools.common.ssh.SshConnection con) protected CommandFactory<? extends ShellCommand>[]
Methods inherited from class com.sshtools.server.DefaultServerChannelFactory
addListener, createChannel, createLocalForwardingChannel, createPublicKeySubsystem, createSftpSubsystem, createSubsystem, executeCommand, onChannelCreated, onCreateChannel, removeListener, supportedCommands
-
Constructor Details
-
VirtualChannelFactory
-
VirtualChannelFactory
@SafeVarargs public VirtualChannelFactory(String shellCommand, CommandFactory<? extends ShellCommand>... factories)
-
-
Method Details
-
createSessionChannel
protected com.sshtools.synergy.ssh.ChannelNG<SshServerContext> createSessionChannel(com.sshtools.common.ssh.SshConnection con) throws com.sshtools.common.ssh.UnsupportedChannelException, com.sshtools.common.permissions.PermissionDeniedException - Overrides:
createSessionChannel
in classDefaultServerChannelFactory
- Throws:
com.sshtools.common.ssh.UnsupportedChannelException
com.sshtools.common.permissions.PermissionDeniedException
-
getCommandFactories
-