@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 ChannelSession
ShellFactory
to use for the channel - null
if noneIOException
- If failed the selectionstatic ShellFactory selectShellFactory(Collection<? extends ShellFactorySelector> selectors, ChannelSession channel) throws IOException
ChannelSession
selectors
- 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–2024 The Apache Software Foundation. All rights reserved.