public class DefaultServerChannelFactory extends java.lang.Object implements com.sshtools.synergy.ssh.ChannelFactory<SshServerContext>
Modifier and Type | Field and Description |
---|---|
protected com.sshtools.common.ssh.components.ComponentFactory<com.sshtools.common.command.ExecutableCommand> |
commands |
static java.lang.String |
LOCAL_FORWARDING_CHANNEL_TYPE |
Constructor and Description |
---|
DefaultServerChannelFactory() |
Modifier and Type | Method and Description |
---|---|
DefaultServerChannelFactory |
addListener(com.sshtools.synergy.ssh.ChannelFactoryListener<SshServerContext> listener) |
com.sshtools.synergy.ssh.ChannelNG<SshServerContext> |
createChannel(java.lang.String channeltype,
com.sshtools.common.ssh.SshConnection con) |
protected com.sshtools.synergy.ssh.ChannelNG<SshServerContext> |
createLocalForwardingChannel(com.sshtools.common.ssh.SshConnection con) |
protected PublicKeySubsystem |
createPublicKeySubsystem(com.sshtools.common.ssh.SessionChannel session) |
protected com.sshtools.synergy.ssh.ChannelNG<SshServerContext> |
createSessionChannel(com.sshtools.common.ssh.SshConnection con) |
protected com.sshtools.common.sftp.SftpSubsystem |
createSftpSubsystem(com.sshtools.common.ssh.SessionChannel session) |
com.sshtools.common.ssh.Subsystem |
createSubsystem(java.lang.String name,
com.sshtools.common.ssh.SessionChannel session) |
com.sshtools.common.command.ExecutableCommand |
executeCommand(com.sshtools.common.ssh.SessionChannel sessionChannel,
java.lang.String[] args,
java.util.Map<java.lang.String,java.lang.String> environment) |
protected com.sshtools.synergy.ssh.ChannelNG<SshServerContext> |
onChannelCreated(com.sshtools.synergy.ssh.ChannelNG<SshServerContext> channel) |
protected com.sshtools.synergy.ssh.ChannelNG<SshServerContext> |
onCreateChannel(java.lang.String channeltype,
com.sshtools.common.ssh.SshConnection con) |
void |
removeListener(com.sshtools.synergy.ssh.ChannelFactoryListener<SshServerContext> listener) |
com.sshtools.common.ssh.components.ComponentFactory<com.sshtools.common.command.ExecutableCommand> |
supportedCommands() |
public static final java.lang.String LOCAL_FORWARDING_CHANNEL_TYPE
protected com.sshtools.common.ssh.components.ComponentFactory<com.sshtools.common.command.ExecutableCommand> commands
public DefaultServerChannelFactory addListener(com.sshtools.synergy.ssh.ChannelFactoryListener<SshServerContext> listener)
public void removeListener(com.sshtools.synergy.ssh.ChannelFactoryListener<SshServerContext> listener)
public com.sshtools.common.ssh.components.ComponentFactory<com.sshtools.common.command.ExecutableCommand> supportedCommands()
supportedCommands
in interface com.sshtools.synergy.ssh.ChannelFactory<SshServerContext>
public final com.sshtools.synergy.ssh.ChannelNG<SshServerContext> createChannel(java.lang.String channeltype, com.sshtools.common.ssh.SshConnection con) throws com.sshtools.common.ssh.UnsupportedChannelException, com.sshtools.common.permissions.PermissionDeniedException, com.sshtools.common.ssh.ChannelOpenException
createChannel
in interface com.sshtools.synergy.ssh.ChannelFactory<SshServerContext>
com.sshtools.common.ssh.UnsupportedChannelException
com.sshtools.common.permissions.PermissionDeniedException
com.sshtools.common.ssh.ChannelOpenException
protected com.sshtools.synergy.ssh.ChannelNG<SshServerContext> onChannelCreated(com.sshtools.synergy.ssh.ChannelNG<SshServerContext> channel)
protected com.sshtools.synergy.ssh.ChannelNG<SshServerContext> createLocalForwardingChannel(com.sshtools.common.ssh.SshConnection con)
protected com.sshtools.synergy.ssh.ChannelNG<SshServerContext> onCreateChannel(java.lang.String channeltype, com.sshtools.common.ssh.SshConnection con) throws com.sshtools.common.ssh.UnsupportedChannelException, com.sshtools.common.permissions.PermissionDeniedException
com.sshtools.common.ssh.UnsupportedChannelException
com.sshtools.common.permissions.PermissionDeniedException
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, com.sshtools.common.ssh.ChannelOpenException
com.sshtools.common.ssh.UnsupportedChannelException
com.sshtools.common.permissions.PermissionDeniedException
com.sshtools.common.ssh.ChannelOpenException
public com.sshtools.common.ssh.Subsystem createSubsystem(java.lang.String name, com.sshtools.common.ssh.SessionChannel session) throws com.sshtools.common.ssh.UnsupportedChannelException, com.sshtools.common.permissions.PermissionDeniedException
createSubsystem
in interface com.sshtools.synergy.ssh.ChannelFactory<SshServerContext>
com.sshtools.common.ssh.UnsupportedChannelException
com.sshtools.common.permissions.PermissionDeniedException
protected com.sshtools.common.sftp.SftpSubsystem createSftpSubsystem(com.sshtools.common.ssh.SessionChannel session) throws com.sshtools.common.ssh.UnsupportedChannelException, com.sshtools.common.permissions.PermissionDeniedException
com.sshtools.common.ssh.UnsupportedChannelException
com.sshtools.common.permissions.PermissionDeniedException
protected PublicKeySubsystem createPublicKeySubsystem(com.sshtools.common.ssh.SessionChannel session) throws com.sshtools.common.ssh.UnsupportedChannelException, com.sshtools.common.permissions.PermissionDeniedException
com.sshtools.common.ssh.UnsupportedChannelException
com.sshtools.common.permissions.PermissionDeniedException
public com.sshtools.common.command.ExecutableCommand executeCommand(com.sshtools.common.ssh.SessionChannel sessionChannel, java.lang.String[] args, java.util.Map<java.lang.String,java.lang.String> environment) throws com.sshtools.common.permissions.PermissionDeniedException, com.sshtools.common.ssh.UnsupportedChannelException
executeCommand
in interface com.sshtools.synergy.ssh.ChannelFactory<SshServerContext>
com.sshtools.common.permissions.PermissionDeniedException
com.sshtools.common.ssh.UnsupportedChannelException
Copyright © 2024. All rights reserved.