Package com.sshtools.j2ssh.forwarding
Class ForwardingClient.ClientForwardingListener
- java.lang.Object
-
- com.sshtools.j2ssh.forwarding.ForwardingConfiguration
-
- com.sshtools.j2ssh.forwarding.ForwardingListener
-
- com.sshtools.j2ssh.forwarding.ForwardingClient.ClientForwardingListener
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- ForwardingClient
public class ForwardingClient.ClientForwardingListener extends ForwardingListener
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.sshtools.j2ssh.forwarding.ForwardingConfiguration
ForwardingConfiguration.ForwardingConfigurationMonitor
-
-
Field Summary
-
Fields inherited from class com.sshtools.j2ssh.forwarding.ForwardingConfiguration
addressToBind, hostToConnect, listenerList, monitor, name, portToBind, portToConnect, state
-
-
Constructor Summary
Constructors Constructor Description ClientForwardingListener(java.lang.String name, ConnectionProtocol connection, java.lang.String addressToBind, int portToBind, java.lang.String hostToConnect, int portToConnect)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ForwardingSocketChannel
createChannel(java.lang.String hostToConnect, int portToConnect, java.net.Socket socket)
-
Methods inherited from class com.sshtools.j2ssh.forwarding.ForwardingListener
getLocalPort, isListening, isRunning, run, start, stop
-
Methods inherited from class com.sshtools.j2ssh.forwarding.ForwardingConfiguration
addForwardingConfigurationListener, createForwardingBindingChannel, createForwardingIOChannel, createForwardingSocketChannel, getActiveForwardingSocketChannels, getAddressToBind, getHostToConnect, getName, getPortToBind, getPortToConnect, getState, isForwarding, removeForwardingConfigurationListener
-
-
-
-
Constructor Detail
-
ClientForwardingListener
public ClientForwardingListener(java.lang.String name, ConnectionProtocol connection, java.lang.String addressToBind, int portToBind, java.lang.String hostToConnect, int portToConnect)
-
-
Method Detail
-
createChannel
public ForwardingSocketChannel createChannel(java.lang.String hostToConnect, int portToConnect, java.net.Socket socket) throws ForwardingConfigurationException
- Specified by:
createChannel
in classForwardingListener
- Returns:
- Throws:
ForwardingConfigurationException
-
-