com.maverick.sshd.tunnel
Class DefaultRemoteForwardingInterface

java.lang.Object
  extended by com.maverick.sshd.tunnel.DefaultRemoteForwardingInterface
All Implemented Interfaces:
RemoteForwardingInterface

public class DefaultRemoteForwardingInterface
extends Object
implements RemoteForwardingInterface

This class implements the standard socket based forwarding for the SSHD.

Author:
Lee David Painter

Constructor Summary
DefaultRemoteForwardingInterface()
           
 
Method Summary
 boolean belongsTo(Connection connection)
          Does this factory belong to the connection provided?
 void bindInterface(String addressToBind, int portToBind, Connection connection)
          A client has requested that the server start listening and forward any subsequent connections to the client.
 String getBindAddress()
           
 Connection getConnection()
          Return the connection that this interface belongs to
 int getPort()
           
 void stopListening(boolean dropActiveTunnels)
          Stop listening on active interfaces.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRemoteForwardingInterface

public DefaultRemoteForwardingInterface()
Method Detail

belongsTo

public boolean belongsTo(Connection connection)
Description copied from interface: RemoteForwardingInterface
Does this factory belong to the connection provided?

Specified by:
belongsTo in interface RemoteForwardingInterface
Parameters:
connection - ConnectionProtocol
Returns:
boolean

getBindAddress

public String getBindAddress()
Specified by:
getBindAddress in interface RemoteForwardingInterface

getPort

public int getPort()
Specified by:
getPort in interface RemoteForwardingInterface

bindInterface

public void bindInterface(String addressToBind,
                          int portToBind,
                          Connection connection)
                   throws IOException
Description copied from interface: RemoteForwardingInterface
A client has requested that the server start listening and forward any subsequent connections to the client.

Specified by:
bindInterface in interface RemoteForwardingInterface
Parameters:
addressToBind - String
portToBind - int
connection - ConnectionProtocol
Throws:
IOException

stopListening

public void stopListening(boolean dropActiveTunnels)
Description copied from interface: RemoteForwardingInterface
Stop listening on active interfaces.

Specified by:
stopListening in interface RemoteForwardingInterface
Parameters:
dropActiveTunnels - boolean

getConnection

public Connection getConnection()
Description copied from interface: RemoteForwardingInterface
Return the connection that this interface belongs to

Specified by:
getConnection in interface RemoteForwardingInterface
Returns:


Copyright © 2012. All Rights Reserved.