Top Fields Methods
org.apache.sshd.common.channel

public Interface ChannelFactory

extends NamedResource
Known Direct Implementers
org.apache.sshd.server.channel.ChannelSessionFactory, org.apache.sshd.server.forward.TcpipServerChannel.TcpipFactory, org.apache.sshd.agent.local.ChannelAgentForwardingFactory, org.apache.sshd.agent.unix.ChannelAgentForwardingFactory
Imports
java.io.IOException, java.util.Collection, org.apache.sshd.common.NamedResource, org.apache.sshd.common.session.Session

Author
Apache MINA SSHD Project

Field Summary

Inherited from org.apache.sshd.common.NamedResource:
BY_NAME_COMPARATORNAME_EXTRACTOR

Method Summary

Modifier and TypeMethod and Description
public Channel

Returns:

The relevant Channel
createChannel
(Session
The Session through which the request is made
session
)

public static Channel

Returns:

The created Channel - null if no match found
createChannel
(Session
The Session through which the request is made
session
,
Collection<? extends ChannelFactory>
The available factories
factories
,
String
The required factory name to use
name
)

Inherited from org.apache.sshd.common.NamedResource:
findByNamefindFirstMatchByNamegetNamegetNameListgetNamesofNameremoveByNamesafeCompareByName

Method Detail

createChannelback to summary
public Channel createChannel(Session session) throws IOException
Parameters
session:Session

The Session through which the request is made

Returns:Channel

The relevant Channel

Exceptions
IOException:
If failed to create the requested instance
createChannelback to summary
public static Channel createChannel(Session session, Collection<? extends ChannelFactory> factories, String name) throws IOException
Parameters
session:Session

The Session through which the request is made

factories:Collection<? extends ChannelFactory>

The available factories

name:String

The required factory name to use

Returns:Channel

The created Channel - null if no match found

Exceptions
IOException:
If failed to create the requested instance