Package org.apache.sshd.server.subsystem
Interface SubsystemFactory
- All Superinterfaces:
NamedResource
- Author:
- Apache MINA SSHD Project
-
Field Summary
Fields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR
-
Method Summary
Modifier and TypeMethodDescriptioncreateSubsystem
(ChannelSession channel) static Command
createSubsystem
(ChannelSession channel, Collection<? extends SubsystemFactory> factories, String name) Methods inherited from interface org.apache.sshd.common.NamedResource
getName
-
Method Details
-
createSubsystem
- Parameters:
channel
- TheChannelSession
through which the command has been received- Returns:
- a non
null
Command
instance representing the subsystem to be run - Throws:
IOException
- if failed to create the instance
-
createSubsystem
static Command createSubsystem(ChannelSession channel, Collection<? extends SubsystemFactory> factories, String name) throws IOException - Parameters:
channel
- TheChannelSession
through which the command has been receivedfactories
- The availableSubsystemFactory
-ies - ignored ifnull
/emptyname
- Requested subsystem name- Returns:
- The created
Command
instance representing the subsystem to be run -null
if no match found - Throws:
IOException
- If found a matching factory but failed to create the command instance
-