public class ForwardingServer extends java.lang.Object implements ChannelFactory, GlobalRequestHandler
Constructor and Description |
---|
ForwardingServer(ConnectionProtocol connection)
Creates a new ForwardingServer object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addRemoteForwardingConfiguration(java.lang.String addressToBind,
int portToBind) |
Channel |
createChannel(java.lang.String channelType,
byte[] requestData) |
protected ForwardingConfiguration |
getLocalForwardingByAddress(java.lang.String orginatingAddress,
int originatingPort) |
protected ForwardingConfiguration |
getRemoteForwardingByAddress(java.lang.String addressToBind,
int portToBind) |
GlobalRequestResponse |
processGlobalRequest(java.lang.String requestName,
byte[] requestData) |
protected void |
removeRemoteForwarding(java.lang.String addressToBind,
int portToBind) |
public ForwardingServer(ConnectionProtocol connection) throws java.io.IOException
connection
- java.io.IOException
public Channel createChannel(java.lang.String channelType, byte[] requestData) throws InvalidChannelException
createChannel
in interface ChannelFactory
InvalidChannelException
public GlobalRequestResponse processGlobalRequest(java.lang.String requestName, byte[] requestData)
processGlobalRequest
in interface GlobalRequestHandler
requestName
- requestData
- protected ForwardingConfiguration getLocalForwardingByAddress(java.lang.String orginatingAddress, int originatingPort) throws ForwardingConfigurationException
orginatingAddress
- originatingPort
- ForwardingConfigurationException
protected ForwardingConfiguration getRemoteForwardingByAddress(java.lang.String addressToBind, int portToBind) throws ForwardingConfigurationException
addressToBind
- portToBind
- ForwardingConfigurationException
protected void addRemoteForwardingConfiguration(java.lang.String addressToBind, int portToBind) throws ForwardingConfigurationException
addressToBind
- portToBind
- ForwardingConfigurationException
protected void removeRemoteForwarding(java.lang.String addressToBind, int portToBind) throws ForwardingConfigurationException
addressToBind
- portToBind
- ForwardingConfigurationException
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.