Package org.apache.sshd.server.channel
Class ChannelSessionFactory
- java.lang.Object
-
- org.apache.sshd.server.channel.ChannelSessionFactory
-
- All Implemented Interfaces:
ChannelFactory,NamedResource
public class ChannelSessionFactory extends java.lang.Object implements ChannelFactory
-
-
Field Summary
Fields Modifier and Type Field Description static ChannelSessionFactoryINSTANCE-
Fields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR
-
-
Constructor Summary
Constructors Constructor Description ChannelSessionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelcreateChannel(Session session)java.lang.StringgetName()
-
-
-
Field Detail
-
INSTANCE
public static final ChannelSessionFactory INSTANCE
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceNamedResource- Returns:
- The resource name
-
createChannel
public Channel createChannel(Session session) throws java.io.IOException
- Specified by:
createChannelin interfaceChannelFactory- Parameters:
session- TheSessionthrough which the request is made- Returns:
- The relevant
Channel - Throws:
java.io.IOException- If failed to create the requested instance
-
-