Package org.apache.sshd.common.channel
Interface ChannelFactory
- All Superinterfaces:
NamedResource
- All Known Implementing Classes:
ChannelAgentForwardingFactory,ChannelSessionFactory,DirectTcpipFactory,ForwardedTcpipFactory,TcpipServerChannel.TcpipFactory
-
Field Summary
Fields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR -
Method Summary
Modifier and TypeMethodDescriptioncreateChannel(Session session) static ChannelcreateChannel(Session session, Collection<? extends ChannelFactory> factories, String name) Methods inherited from interface org.apache.sshd.common.NamedResource
getName
-
Method Details
-
createChannel
- Parameters:
session- TheSessionthrough which the request is made- Returns:
- The relevant
Channel - Throws:
IOException- If failed to create the requested instance
-
createChannel
static Channel createChannel(Session session, Collection<? extends ChannelFactory> factories, String name) throws IOException - Parameters:
session- TheSessionthrough which the request is madefactories- The available factoriesname- The required factory name to use- Returns:
- The created
Channel-nullif no match found - Throws:
IOException- If failed to create the requested instance
-