com.sshtools.daemon.forwarding
Class ForwardingServer
java.lang.Object
com.sshtools.daemon.forwarding.ForwardingServer
- All Implemented Interfaces:
- ChannelFactory, GlobalRequestHandler
public class ForwardingServer
- extends java.lang.Object
- implements ChannelFactory, GlobalRequestHandler
- Version:
- $Revision: 1.14 $
- Author:
- $author$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ForwardingServer
public ForwardingServer(ConnectionProtocol connection)
throws java.io.IOException
- Creates a new ForwardingServer object.
- Parameters:
connection
-
- Throws:
java.io.IOException
createChannel
public Channel createChannel(java.lang.String channelType,
byte[] requestData)
throws InvalidChannelException
- Specified by:
createChannel
in interface ChannelFactory
- Throws:
InvalidChannelException
processGlobalRequest
public GlobalRequestResponse processGlobalRequest(java.lang.String requestName,
byte[] requestData)
- Specified by:
processGlobalRequest
in interface GlobalRequestHandler
- Parameters:
requestName
- requestData
-
- Returns:
getLocalForwardingByAddress
protected ForwardingConfiguration getLocalForwardingByAddress(java.lang.String orginatingAddress,
int originatingPort)
throws ForwardingConfigurationException
- Parameters:
orginatingAddress
- originatingPort
-
- Returns:
-
- Throws:
ForwardingConfigurationException
getRemoteForwardingByAddress
protected ForwardingConfiguration getRemoteForwardingByAddress(java.lang.String addressToBind,
int portToBind)
throws ForwardingConfigurationException
- Parameters:
addressToBind
- portToBind
-
- Returns:
-
- Throws:
ForwardingConfigurationException
addRemoteForwardingConfiguration
protected void addRemoteForwardingConfiguration(java.lang.String addressToBind,
int portToBind)
throws ForwardingConfigurationException
- Parameters:
addressToBind
- portToBind
-
- Throws:
ForwardingConfigurationException
removeRemoteForwarding
protected void removeRemoteForwarding(java.lang.String addressToBind,
int portToBind)
throws ForwardingConfigurationException
- Parameters:
addressToBind
- portToBind
-
- Throws:
ForwardingConfigurationException
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.