Top Methods
org.apache.sshd.server.shell

public Interface ShellFactorySelector

Known Direct Implementers
org.apache.sshd.server.shell.AggregateShellFactory
Annotations
@FunctionalInterface
Imports
java.io.IOException, java.util.Collection, org.apache.sshd.common.util.GenericUtils, org.apache.sshd.server.channel.ChannelSession

Author
Apache MINA SSHD Project

Method Summary

Modifier and TypeMethod and Description
public ShellFactory

Returns:

The ShellFactory to use for the channel - null if none
selectShellFactory
(ChannelSession channelSession)

public static ShellFactory

Returns:

The selected ShellFactory - null if no selector matched (in which case the default factory is used)
selectShellFactory
(Collection<? extends ShellFactorySelector>
The ShellFactorySelector-s to consult - ignored if null/empty
selectors
,
ChannelSession
The ChannelSession instance
channel
)

Consults each selector whether it wants to provide a factory for the ChannelSession

Method Detail

selectShellFactoryback to summary
public ShellFactory selectShellFactory(ChannelSession channelSession) throws IOException
Parameters
channelSession:ChannelSession

The ChannelSession

Returns:ShellFactory

The ShellFactory to use for the channel - null if none

Exceptions
IOException:
If failed the selection
selectShellFactoryback to summary
public static ShellFactory selectShellFactory(Collection<? extends ShellFactorySelector> selectors, ChannelSession channel) throws IOException

Consults each selector whether it wants to provide a factory for the ChannelSession

Parameters
selectors:Collection<? extends ShellFactorySelector>

The ShellFactorySelector-s to consult - ignored if null/empty

channel:ChannelSession

The ChannelSession instance

Returns:ShellFactory

The selected ShellFactory - null if no selector matched (in which case the default factory is used)

Exceptions
IOException:
if any selector threw it