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 java.lang.Object implements ChannelFactory, ExecutorServiceCarrier
-
-
Field Summary
Fields Modifier and Type Field Description private TcpForwardingFilter.Typetype-
Fields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTcpipFactory(TcpForwardingFilter.Type type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelcreateChannel(Session session)CloseableExecutorServicegetExecutorService()java.lang.StringgetName()TcpForwardingFilter.TypegetType()
-
-
-
Field Detail
-
type
private final TcpForwardingFilter.Type type
-
-
Constructor Detail
-
TcpipFactory
protected TcpipFactory(TcpForwardingFilter.Type type)
-
-
Method Detail
-
getType
public final TcpForwardingFilter.Type getType()
-
getName
public final java.lang.String getName()
- Specified by:
getNamein interfaceNamedResource- Returns:
- The resource name
-
getExecutorService
public CloseableExecutorService getExecutorService()
- Specified by:
getExecutorServicein interfaceExecutorServiceCarrier- Returns:
- The
CloseableExecutorServiceto use
-
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
-
-