Package org.jenkinsci.main.modules.sshd
Class InvalidCommand
java.lang.Object
org.jenkinsci.main.modules.sshd.InvalidCommand
- All Implemented Interfaces:
org.apache.sshd.server.command.Command
,org.apache.sshd.server.command.CommandDirectErrorStreamAware
,org.apache.sshd.server.command.CommandDirectInputStreamAware
,org.apache.sshd.server.command.CommandDirectOutputStreamAware
,org.apache.sshd.server.command.CommandDirectStreamsAware
,org.apache.sshd.server.command.CommandLifecycle
Command
implementation that exits by complaining that there's no such command.- Author:
- Kohsuke Kawaguchi
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy
(org.apache.sshd.server.channel.ChannelSession channel) void
void
setExitCallback
(org.apache.sshd.server.ExitCallback callback) void
void
void
start
(org.apache.sshd.server.channel.ChannelSession channel, org.apache.sshd.server.Environment env)
-
Constructor Details
-
InvalidCommand
-
-
Method Details
-
setInputStream
- Specified by:
setInputStream
in interfaceorg.apache.sshd.server.command.CommandDirectInputStreamAware
-
setOutputStream
- Specified by:
setOutputStream
in interfaceorg.apache.sshd.server.command.CommandDirectOutputStreamAware
-
setErrorStream
- Specified by:
setErrorStream
in interfaceorg.apache.sshd.server.command.CommandDirectErrorStreamAware
-
setExitCallback
public void setExitCallback(org.apache.sshd.server.ExitCallback callback) - Specified by:
setExitCallback
in interfaceorg.apache.sshd.server.command.Command
-
start
public void start(org.apache.sshd.server.channel.ChannelSession channel, org.apache.sshd.server.Environment env) throws IOException - Specified by:
start
in interfaceorg.apache.sshd.server.command.CommandLifecycle
- Throws:
IOException
-
destroy
- Specified by:
destroy
in interfaceorg.apache.sshd.server.command.CommandLifecycle
- Throws:
Exception
-