Package org.apache.sshd.server.subsystem
Interface SubsystemFactory
- All Superinterfaces:
NamedResource
- All Known Implementing Classes:
SftpSubsystemFactory
-
Field Summary
Fields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR -
Method Summary
Modifier and TypeMethodDescriptioncreateSubsystem(ChannelSession channel) static CommandcreateSubsystem(ChannelSession channel, Collection<? extends SubsystemFactory> factories, String name) Methods inherited from interface org.apache.sshd.common.NamedResource
getName
-
Method Details
-
createSubsystem
- Parameters:
channel- TheChannelSessionthrough which the command has been received- Returns:
- a non
nullCommandinstance 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- TheChannelSessionthrough which the command has been receivedfactories- The availableSubsystemFactory-ies - ignored ifnull/emptyname- Requested subsystem name- Returns:
- The created
Commandinstance representing the subsystem to be run -nullif no match found - Throws:
IOException- If found a matching factory but failed to create the command instance
-