public class DefaultForwardingManager extends Object implements ForwardingManager
| Constructor and Description |
|---|
DefaultForwardingManager() |
| Modifier and Type | Method and Description |
|---|---|
LocalForwardingInterface |
createLocalForwardingInterface() |
RemoteForwardingInterface |
createRemoteForwardingInterface()
Create the interface to handle the remote forwarding requests.
|
RemoteForwardingInterface[] |
getListeningPorts() |
RemoteForwardingInterface[] |
getListeningPorts(Connection connection) |
RemoteForwardingInterface |
getRemoteInterface(int port) |
boolean |
isListening(int port)
Is there an existing forwarding listening on a particular port?
|
void |
openLocalForwarding(ForwardingChannel channel) |
boolean |
startRemoteForwarding(String addressToBind,
int portToBind,
ConnectionProtocol connection)
Start remote forwarding.
|
boolean |
stopRemoteForwarding(String addressToBind,
int portToBind,
boolean dropActiveTunnels,
ConnectionProtocol connection)
Stop remote forwarding.
|
public boolean isListening(int port)
ForwardingManagerisListening in interface ForwardingManagerport - intpublic RemoteForwardingInterface getRemoteInterface(int port)
getRemoteInterface in interface ForwardingManagerpublic boolean startRemoteForwarding(String addressToBind, int portToBind, ConnectionProtocol connection)
ForwardingManagerstartRemoteForwarding in interface ForwardingManageraddressToBind - StringportToBind - intconnection - ConnectionProtocolpublic boolean stopRemoteForwarding(String addressToBind, int portToBind, boolean dropActiveTunnels, ConnectionProtocol connection)
ForwardingManagerstopRemoteForwarding in interface ForwardingManageraddressToBind - StringportToBind - intdropActiveTunnels - booleanconnection - ConnectionProtocolpublic RemoteForwardingInterface createRemoteForwardingInterface()
ForwardingManagercreateRemoteForwardingInterface in interface ForwardingManagerpublic LocalForwardingInterface createLocalForwardingInterface()
public void openLocalForwarding(ForwardingChannel channel) throws com.maverick.ssh.ChannelOpenException
openLocalForwarding in interface ForwardingManagercom.maverick.ssh.ChannelOpenExceptionpublic RemoteForwardingInterface[] getListeningPorts(Connection connection)
getListeningPorts in interface ForwardingManagerpublic RemoteForwardingInterface[] getListeningPorts()
getListeningPorts in interface ForwardingManagerCopyright © 2012. All Rights Reserved.