com.sshtools.daemon.forwarding

Class ForwardingServer

Implemented Interfaces:
ChannelFactory, GlobalRequestHandler

public class ForwardingServer
extends java.lang.Object
implements ChannelFactory, GlobalRequestHandler

Version:
$Revision: 1.14 $
Author:
$author$

Constructor Summary

ForwardingServer(ConnectionProtocol connection)
Creates a new ForwardingServer object.

Method Summary

protected void
addRemoteForwardingConfiguration(String addressToBind, int portToBind)
Channel
createChannel(String channelType, byte[] requestData)
protected ForwardingConfiguration
getLocalForwardingByAddress(String orginatingAddress, int originatingPort)
protected ForwardingConfiguration
getRemoteForwardingByAddress(String addressToBind, int portToBind)
GlobalRequestResponse
processGlobalRequest(String requestName, byte[] requestData)
protected void
removeRemoteForwarding(String addressToBind, int portToBind)

Constructor Details

ForwardingServer

public ForwardingServer(ConnectionProtocol connection)
            throws IOException
Creates a new ForwardingServer object.
Parameters:
connection -

Method Details

addRemoteForwardingConfiguration

protected void addRemoteForwardingConfiguration(String addressToBind,
                                                int portToBind)
            throws ForwardingConfigurationException
Parameters:
addressToBind -
portToBind -

createChannel

public Channel createChannel(String channelType,
                             byte[] requestData)
            throws InvalidChannelException
Specified by:
createChannel in interface ChannelFactory

getLocalForwardingByAddress

protected ForwardingConfiguration getLocalForwardingByAddress(String orginatingAddress,
                                                              int originatingPort)
            throws ForwardingConfigurationException
Parameters:
orginatingAddress -
originatingPort -
Returns:

getRemoteForwardingByAddress

protected ForwardingConfiguration getRemoteForwardingByAddress(String addressToBind,
                                                               int portToBind)
            throws ForwardingConfigurationException
Parameters:
addressToBind -
portToBind -
Returns:

processGlobalRequest

public GlobalRequestResponse processGlobalRequest(String requestName,
                                                  byte[] requestData)
Specified by:
processGlobalRequest in interface GlobalRequestHandler
Parameters:
requestName -
requestData -
Returns:

removeRemoteForwarding

protected void removeRemoteForwarding(String addressToBind,
                                      int portToBind)
            throws ForwardingConfigurationException
Parameters:
addressToBind -
portToBind -

Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.