public class DefaultClientChannelFactory extends java.lang.Object implements ChannelFactory<SshClientContext>
| Constructor and Description |
|---|
DefaultClientChannelFactory() |
| Modifier and Type | Method and Description |
|---|---|
ChannelNG<SshClientContext> |
createChannel(java.lang.String channeltype,
SshConnection con)
Called when a channel needs to be created.
|
Subsystem |
createSubsystem(java.lang.String name,
SessionChannel session)
Request to create a subsystem.
|
ExecutableCommand |
executeCommand(SessionChannel channel,
java.lang.String[] args,
java.util.Map<java.lang.String,java.lang.String> environment) |
protected ChannelNG<SshClientContext> |
onCreateChannel(java.lang.String channeltype,
SshConnection con) |
ComponentFactory<ExecutableCommand> |
supportedCommands() |
public final ChannelNG<SshClientContext> createChannel(java.lang.String channeltype, SshConnection con) throws UnsupportedChannelException, PermissionDeniedException
createChannel in interface ChannelFactory<SshClientContext>UnsupportedChannelExceptionPermissionDeniedExceptionprotected ChannelNG<SshClientContext> onCreateChannel(java.lang.String channeltype, SshConnection con) throws UnsupportedChannelException, PermissionDeniedException
public Subsystem createSubsystem(java.lang.String name, SessionChannel session) throws UnsupportedChannelException, PermissionDeniedException
createSubsystem in interface ChannelFactory<SshClientContext>UnsupportedChannelExceptionPermissionDeniedExceptionpublic ExecutableCommand executeCommand(SessionChannel channel, java.lang.String[] args, java.util.Map<java.lang.String,java.lang.String> environment) throws PermissionDeniedException, UnsupportedChannelException
executeCommand in interface ChannelFactory<SshClientContext>PermissionDeniedExceptionUnsupportedChannelExceptionpublic ComponentFactory<ExecutableCommand> supportedCommands()
supportedCommands in interface ChannelFactory<SshClientContext>Copyright © 2022. All rights reserved.