Package org.apache.sshd.server.forward
Class TcpipServerChannel.TcpipFactory
- java.lang.Object
-
- org.apache.sshd.server.forward.TcpipServerChannel.TcpipFactory
-
- All Implemented Interfaces:
ChannelFactory
,NamedResource
,ExecutorServiceCarrier
- Direct Known Subclasses:
DirectTcpipFactory
,ForwardedTcpipFactory
- Enclosing class:
- TcpipServerChannel
public abstract static class TcpipServerChannel.TcpipFactory extends Object implements ChannelFactory, ExecutorServiceCarrier
-
-
Field Summary
-
Fields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TcpipFactory(TcpForwardingFilter.Type type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Channel
createChannel(Session session)
CloseableExecutorService
getExecutorService()
String
getName()
TcpForwardingFilter.Type
getType()
-
-
-
Constructor Detail
-
TcpipFactory
protected TcpipFactory(TcpForwardingFilter.Type type)
-
-
Method Detail
-
getType
public final TcpForwardingFilter.Type getType()
-
getName
public final String getName()
- Specified by:
getName
in interfaceNamedResource
- Returns:
- The resource name
-
getExecutorService
public CloseableExecutorService getExecutorService()
- Specified by:
getExecutorService
in interfaceExecutorServiceCarrier
- Returns:
- The
CloseableExecutorService
to use
-
createChannel
public Channel createChannel(Session session) throws IOException
- Specified by:
createChannel
in interfaceChannelFactory
- Parameters:
session
- TheSession
through which the request is made- Returns:
- The relevant
Channel
- Throws:
IOException
- If failed to create the requested instance
-
-