| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectcom.sshtools.daemon.forwarding.ForwardingServerpublic class ForwardingServerextends java.lang.Objectimplements ChannelFactory, GlobalRequestHandlerConstructor Summary | |
| |
Method Summary | |
protected void |
|
Channel |
|
protected ForwardingConfiguration |
|
protected ForwardingConfiguration |
|
GlobalRequestResponse |
|
protected void |
|
public ForwardingServer(ConnectionProtocol connection) throws IOException
Creates a new ForwardingServer object.
- Parameters:
connection-
protected void addRemoteForwardingConfiguration(String addressToBind,
int portToBind)
throws ForwardingConfigurationException
- Parameters:
addressToBind-portToBind-
- Throws:
ForwardingConfigurationException-
public Channel createChannel(String channelType, byte[] requestData) throws InvalidChannelException
- Specified by:
- createChannel in interface ChannelFactory
protected ForwardingConfiguration getLocalForwardingByAddress(String orginatingAddress, int originatingPort) throws ForwardingConfigurationException
- Parameters:
orginatingAddress-originatingPort-
- Returns:
- Throws:
ForwardingConfigurationException-
protected ForwardingConfiguration getRemoteForwardingByAddress(String addressToBind, int portToBind) throws ForwardingConfigurationException
- Parameters:
addressToBind-portToBind-
- Returns:
- Throws:
ForwardingConfigurationException-
public GlobalRequestResponse processGlobalRequest(String requestName, byte[] requestData)
- Specified by:
- processGlobalRequest in interface GlobalRequestHandler
- Parameters:
requestName-requestData-
- Returns:
protected void removeRemoteForwarding(String addressToBind,
int portToBind)
throws ForwardingConfigurationException
- Parameters:
addressToBind-portToBind-
- Throws:
ForwardingConfigurationException-