|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.maverick.sshd.tunnel.DefaultForwardingManager
public class DefaultForwardingManager
This class provides management of remote forwarding requests.
| Constructor Summary | |
|---|---|
DefaultForwardingManager()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultForwardingManager()
| Method Detail |
|---|
public boolean isListening(int port)
ForwardingManager
isListening in interface ForwardingManagerport - int
public RemoteForwardingInterface getRemoteInterface(int port)
getRemoteInterface in interface ForwardingManager
public boolean startRemoteForwarding(String addressToBind,
int portToBind,
ConnectionProtocol connection)
ForwardingManager
startRemoteForwarding in interface ForwardingManageraddressToBind - StringportToBind - intconnection - ConnectionProtocol
public boolean stopRemoteForwarding(String addressToBind,
int portToBind,
boolean dropActiveTunnels,
ConnectionProtocol connection)
ForwardingManager
stopRemoteForwarding in interface ForwardingManageraddressToBind - StringportToBind - intdropActiveTunnels - booleanconnection - ConnectionProtocol
public RemoteForwardingInterface createRemoteForwardingInterface()
ForwardingManager
createRemoteForwardingInterface 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 ForwardingManager
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||