com.maverick.sshd
Class RemoteForwardingFactoryImpl

java.lang.Object
  extended by com.maverick.nio.ClientAcceptor
      extended by com.maverick.sshd.RemoteForwardingFactoryImpl
All Implemented Interfaces:
RemoteForwardingFactory

public class RemoteForwardingFactoryImpl
extends ClientAcceptor
implements RemoteForwardingFactory

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

Author:
Lee David Painter

Constructor Summary
RemoteForwardingFactoryImpl()
           
 
Method Summary
 boolean belongsTo(ConnectionProtocol connection)
          Does this factory belong to the connection provided?
 void bindInterface(java.lang.String addressToBind, int portToBind, ConnectionProtocol connection)
          A client has requested that the server start listening and forward any subsequent connections to the client.
 boolean finishAccept(java.nio.channels.SelectionKey key, ProtocolContext protocolContext)
          Complete the accept operation.
 void stopAccepting()
          Stop accepting clients
 void stopListening(boolean dropActiveTunnels)
          Stop listening on active interfaces.
 
Methods inherited from class com.maverick.nio.ClientAcceptor
finishAccept
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteForwardingFactoryImpl

public RemoteForwardingFactoryImpl()
Method Detail

belongsTo

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

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

bindInterface

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

Specified by:
bindInterface in interface RemoteForwardingFactory
Parameters:
addressToBind - String
portToBind - int
connection - ConnectionProtocol
Throws:
java.io.IOException

finishAccept

public boolean finishAccept(java.nio.channels.SelectionKey key,
                            ProtocolContext protocolContext)
Description copied from class: ClientAcceptor
Complete the accept operation.

Specified by:
finishAccept in class ClientAcceptor
Parameters:
key - SelectionKey
protocolContext - ProtocolContext
Returns:
boolean

stopListening

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

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

stopAccepting

public void stopAccepting()
Description copied from class: ClientAcceptor
Stop accepting clients

Specified by:
stopAccepting in class ClientAcceptor


Copyright © 2003-2008 SSHTools LTD. All Rights Reserved.