Package com.sshtools.daemon.forwarding
Class ForwardingServer
java.lang.Object
com.sshtools.daemon.forwarding.ForwardingServer
- All Implemented Interfaces:
ChannelFactory
,GlobalRequestHandler
- Version:
- $Revision: 1.14 $
- Author:
- $author$
-
Constructor Summary
ConstructorsConstructorDescriptionForwardingServer
(ConnectionProtocol connection) Creates a new ForwardingServer object. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addRemoteForwardingConfiguration
(String addressToBind, int portToBind) createChannel
(String channelType, byte[] requestData) protected ForwardingConfiguration
getLocalForwardingByAddress
(String orginatingAddress, int originatingPort) protected ForwardingConfiguration
getRemoteForwardingByAddress
(String addressToBind, int portToBind) processGlobalRequest
(String requestName, byte[] requestData) protected void
removeRemoteForwarding
(String addressToBind, int portToBind)
-
Constructor Details
-
ForwardingServer
Creates a new ForwardingServer object.- Parameters:
connection
-- Throws:
IOException
-
-
Method Details
-
createChannel
- Specified by:
createChannel
in interfaceChannelFactory
- Throws:
InvalidChannelException
-
processGlobalRequest
- Specified by:
processGlobalRequest
in interfaceGlobalRequestHandler
- Parameters:
requestName
-requestData
-- Returns:
-
getLocalForwardingByAddress
protected ForwardingConfiguration getLocalForwardingByAddress(String orginatingAddress, int originatingPort) throws ForwardingConfigurationException - Parameters:
orginatingAddress
-originatingPort
-- Returns:
- Throws:
ForwardingConfigurationException
-
getRemoteForwardingByAddress
protected ForwardingConfiguration getRemoteForwardingByAddress(String addressToBind, int portToBind) throws ForwardingConfigurationException - Parameters:
addressToBind
-portToBind
-- Returns:
- Throws:
ForwardingConfigurationException
-
addRemoteForwardingConfiguration
protected void addRemoteForwardingConfiguration(String addressToBind, int portToBind) throws ForwardingConfigurationException - Parameters:
addressToBind
-portToBind
-- Throws:
ForwardingConfigurationException
-
removeRemoteForwarding
protected void removeRemoteForwarding(String addressToBind, int portToBind) throws ForwardingConfigurationException - Parameters:
addressToBind
-portToBind
-- Throws:
ForwardingConfigurationException
-