Package com.sshtools.synergy.ssh
Class CompoundChannelFactory<C extends SshContext>
java.lang.Object
com.sshtools.synergy.ssh.CompoundChannelFactory<C>
- All Implemented Interfaces:
ChannelFactory<C>
public class CompoundChannelFactory<C extends SshContext>
extends Object
implements ChannelFactory<C>
-
Constructor Summary
ConstructorsConstructorDescriptionCompoundChannelFactory(ChannelFactory<C>... factories) CompoundChannelFactory(Collection<ChannelFactory<C>> factories) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFactory(ChannelFactory<C> factory) createChannel(String channeltype, SshConnection con) createSubsystem(String name, SessionChannel session) executeCommand(SessionChannel channel, String[] args, Map<String, String> environment) voidremoveFactory(ChannelFactory<C> factory)
-
Constructor Details
-
CompoundChannelFactory
public CompoundChannelFactory() -
CompoundChannelFactory
-
CompoundChannelFactory
-
-
Method Details
-
addFactory
-
removeFactory
-
getFactories
-
supportedCommands
- Specified by:
supportedCommandsin interfaceChannelFactory<C extends SshContext>
-
createChannel
public ChannelNG<C> createChannel(String channeltype, SshConnection con) throws UnsupportedChannelException, PermissionDeniedException, ChannelOpenException - Specified by:
createChannelin interfaceChannelFactory<C extends SshContext>- Throws:
UnsupportedChannelExceptionPermissionDeniedExceptionChannelOpenException
-
createSubsystem
public Subsystem createSubsystem(String name, SessionChannel session) throws UnsupportedChannelException, PermissionDeniedException - Specified by:
createSubsystemin interfaceChannelFactory<C extends SshContext>- Throws:
UnsupportedChannelExceptionPermissionDeniedException
-
executeCommand
public ExecutableCommand executeCommand(SessionChannel channel, String[] args, Map<String, String> environment) throws PermissionDeniedException, UnsupportedChannelException- Specified by:
executeCommandin interfaceChannelFactory<C extends SshContext>- Throws:
PermissionDeniedExceptionUnsupportedChannelException
-