Package org.apache.sshd.common.channel
Interface ChannelFactory
-
- All Superinterfaces:
NamedResource
- All Known Implementing Classes:
ChannelAgentForwardingFactory,ChannelAgentForwardingFactory,ChannelSessionFactory,DirectTcpipFactory,ForwardedTcpipFactory,TcpipServerChannel.TcpipFactory
public interface ChannelFactory extends NamedResource
- Author:
- Apache MINA SSHD Project
-
-
Field Summary
-
Fields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description ChannelcreateChannel(Session session)static ChannelcreateChannel(Session session, Collection<? extends ChannelFactory> factories, String name)-
Methods inherited from interface org.apache.sshd.common.NamedResource
getName
-
-
-
-
Method Detail
-
createChannel
Channel createChannel(Session session) throws IOException
- 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
-
-