@FunctionalInterface public interface ShellFactorySelector
| Modifier and Type | Method and Description |
|---|---|
ShellFactory |
selectShellFactory(ChannelSession channelSession) |
static ShellFactory |
selectShellFactory(Collection<? extends ShellFactorySelector> selectors,
ChannelSession channel)
Consults each selector whether it wants to provide a factory for the
ChannelSession |
ShellFactory selectShellFactory(ChannelSession channelSession) throws IOException
channelSession - The ChannelSessionShellFactory to use for the channel - null if noneIOException - If failed the selectionstatic ShellFactory selectShellFactory(Collection<? extends ShellFactorySelector> selectors, ChannelSession channel) throws IOException
ChannelSessionselectors - The ShellFactorySelector-s to consult - ignored if null/emptychannel - The ChannelSession instanceShellFactory - null if no selector matched (in which case the
default factory is used)IOException - if any selector threw itCopyright © 2008–2021 The Apache Software Foundation. All rights reserved.