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.IOExceptionpublic Channel createChannel(java.lang.String channelType, byte[] requestData) throws InvalidChannelException
createChannel in interface ChannelFactoryInvalidChannelExceptionpublic GlobalRequestResponse processGlobalRequest(java.lang.String requestName, byte[] requestData)
processGlobalRequest in interface GlobalRequestHandlerrequestName - requestData - protected ForwardingConfiguration getLocalForwardingByAddress(java.lang.String orginatingAddress, int originatingPort) throws ForwardingConfigurationException
orginatingAddress - originatingPort - ForwardingConfigurationExceptionprotected ForwardingConfiguration getRemoteForwardingByAddress(java.lang.String addressToBind, int portToBind) throws ForwardingConfigurationException
addressToBind - portToBind - ForwardingConfigurationExceptionprotected void addRemoteForwardingConfiguration(java.lang.String addressToBind,
int portToBind)
throws ForwardingConfigurationException
addressToBind - portToBind - ForwardingConfigurationExceptionprotected void removeRemoteForwarding(java.lang.String addressToBind,
int portToBind)
throws ForwardingConfigurationException
addressToBind - portToBind - ForwardingConfigurationExceptionCopyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.