public abstract class SocketListeningForwardingFactoryImpl<T extends SshContext> extends ClientAcceptor implements ForwardingFactory<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
SocketListeningForwardingFactoryImpl.ActiveTunnelManager<K extends SshContext> |
| Constructor and Description |
|---|
SocketListeningForwardingFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
belongsTo(ConnectionProtocol<T> connection)
Does this factory belong to the connection provided?
|
int |
bindInterface(java.lang.String addressToBind,
int portToBind,
ConnectionProtocol<?> connection,
java.lang.String channelType) |
int |
bindInterface(java.lang.String addressToBind,
int portToBind,
ConnectionProtocol<T> connection)
A client has requested that the server start listening and forward
any subsequent connections to the client.
|
protected abstract ForwardingChannel<T> |
createChannel(java.lang.String channelType,
SshConnection con,
java.lang.String addressToBind,
int portToBind,
java.nio.channels.SocketChannel sc,
T context) |
boolean |
finishAccept(java.nio.channels.SelectionKey key,
ListeningInterface li)
Complete the accept operation.
|
SocketListeningForwardingFactoryImpl.ActiveTunnelManager<T> |
getActiveTunnelManager() |
void |
stopAccepting()
Stop accepting clients
|
void |
stopListening(boolean dropActiveTunnels)
Stop listening on active interfaces.
|
finishAcceptclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChannelType, getStartedEventCode, getStoppedEventCodepublic SocketListeningForwardingFactoryImpl()
public SocketListeningForwardingFactoryImpl.ActiveTunnelManager<T> getActiveTunnelManager()
getActiveTunnelManager in interface ForwardingFactory<T extends SshContext>public boolean belongsTo(ConnectionProtocol<T> connection)
ForwardingFactorybelongsTo in interface ForwardingFactory<T extends SshContext>connection - ConnectionProtocolpublic int bindInterface(java.lang.String addressToBind,
int portToBind,
ConnectionProtocol<T> connection)
throws java.io.IOException
ForwardingFactorybindInterface in interface ForwardingFactory<T extends SshContext>addressToBind - StringportToBind - intconnection - ConnectionProtocoljava.io.IOExceptionpublic int bindInterface(java.lang.String addressToBind,
int portToBind,
ConnectionProtocol<?> connection,
java.lang.String channelType)
throws java.io.IOException
bindInterface in interface ForwardingFactory<T extends SshContext>java.io.IOExceptionpublic boolean finishAccept(java.nio.channels.SelectionKey key,
ListeningInterface li)
ClientAcceptorfinishAccept in class ClientAcceptorkey - SelectionKeyprotected abstract ForwardingChannel<T> createChannel(java.lang.String channelType, SshConnection con, java.lang.String addressToBind, int portToBind, java.nio.channels.SocketChannel sc, T context)
public void stopListening(boolean dropActiveTunnels)
ForwardingFactorystopListening in interface ForwardingFactory<T extends SshContext>dropActiveTunnels - booleanpublic void stopAccepting()
ClientAcceptorstopAccepting in class ClientAcceptorCopyright © 2021. All rights reserved.