Top Description Methods
org.apache.sshd.server.command

public Interface Command

extends CommandLifecycle, CommandDirectStreamsAware
Known Direct Subinterfaces
org.apache.sshd.server.command.AsyncCommand
Known Direct Implementers
org.apache.sshd.server.shell.InvertedShellWrapper, org.apache.sshd.server.shell.UnknownCommand, org.apache.sshd.server.command.AbstractCommandSupport
Imports
org.apache.sshd.server.ExitCallback

Represents a command, shell or subsystem that can be used to send command.

This command have direct streams, meaning those streams will be provided by the ssh server for the shell to use directly. This interface is suitable for implementing commands in java, rather than using external processes. For wrapping such processes or using inverted streams,

see org.apache.sshd.server.shell.InvertedShellWrapper.

Method Summary

Modifier and TypeMethod and Description
public void
setExitCallback(ExitCallback
The ExitCallback to call when shell is closed
callback
)

Set the callback that the shell has to call when it is closed.

Inherited from org.apache.sshd.server.command.CommandLifecycle:
destroystart

Method Detail

setExitCallbackback to summary
public void setExitCallback(ExitCallback callback)

Set the callback that the shell has to call when it is closed.

Parameters
callback:ExitCallback

The ExitCallback to call when shell is closed