com.sshtools.daemon.forwarding
Class ForwardingServer.ServerForwardingListener

java.lang.Object
  extended by com.sshtools.j2ssh.forwarding.ForwardingConfiguration
      extended by com.sshtools.j2ssh.forwarding.ForwardingListener
          extended by com.sshtools.daemon.forwarding.ForwardingServer.ServerForwardingListener
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
ForwardingServer

 class ForwardingServer.ServerForwardingListener
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
ForwardingServer.ServerForwardingListener(ConnectionProtocol connection, java.lang.String addressToBind, int portToBind)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForwardingServer.ServerForwardingListener

public ForwardingServer.ServerForwardingListener(ConnectionProtocol connection,
                                                 java.lang.String addressToBind,
                                                 int portToBind)
Method Detail

createChannel

public ForwardingSocketChannel createChannel(java.lang.String hostToConnect,
                                             int portToConnect,
                                             java.net.Socket socket)
                                      throws ForwardingConfigurationException
Specified by:
createChannel in class ForwardingListener
Returns:
Throws:
ForwardingConfigurationException