Package org.dellroad.jct.ssh
Class JctExecFactory
java.lang.Object
org.dellroad.jct.ssh.JctExecFactory
- All Implemented Interfaces:
org.apache.sshd.server.command.CommandFactory
An Apache MINA SSHD
CommandFactory
that connects to a Java Console Toolkit Exec
instance.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCommand
(org.apache.sshd.server.channel.ChannelSession channel, String command)
-
Field Details
-
exec
-
-
Constructor Details
-
JctExecFactory
Constructor.- Parameters:
exec
- the underlyingExec
instance- Throws:
IllegalArgumentException
- ifexec
is null
-
-
Method Details
-
createCommand
public JctExecCommand createCommand(org.apache.sshd.server.channel.ChannelSession channel, String command) throws IOException - Specified by:
createCommand
in interfaceorg.apache.sshd.server.command.CommandFactory
- Throws:
IOException
-