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 voidaddRemoteForwardingConfiguration(String addressToBind, int portToBind) createChannel(String channelType, byte[] requestData) protected ForwardingConfigurationgetLocalForwardingByAddress(String orginatingAddress, int originatingPort) protected ForwardingConfigurationgetRemoteForwardingByAddress(String addressToBind, int portToBind) processGlobalRequest(String requestName, byte[] requestData) protected voidremoveRemoteForwarding(String addressToBind, int portToBind)
-
Constructor Details
-
ForwardingServer
Creates a new ForwardingServer object.- Parameters:
connection-- Throws:
IOException
-
-
Method Details
-
createChannel
- Specified by:
createChannelin interfaceChannelFactory- Throws:
InvalidChannelException
-
processGlobalRequest
- Specified by:
processGlobalRequestin 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
-