Package org.apache.sshd.common.channel
Interface ChannelFactory
- All Superinterfaces:
NamedResource
- All Known Implementing Classes:
ChannelAgentForwardingFactory
,ChannelAgentForwardingFactory
,ChannelSessionFactory
,DirectTcpipFactory
,ForwardedTcpipFactory
,TcpipServerChannel.TcpipFactory
- 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 TypeMethodDescriptioncreateChannel
(Session session) static Channel
createChannel
(Session session, Collection<? extends ChannelFactory> factories, String name) Methods inherited from interface org.apache.sshd.common.NamedResource
getName
-
Method Details
-
createChannel
- Parameters:
session
- TheSession
through 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
- TheSession
through which the request is madefactories
- The available factoriesname
- The required factory name to use- Returns:
- The created
Channel
-null
if no match found - Throws:
IOException
- If failed to create the requested instance
-