|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An event listener for receiving notification of forwarding events.
Field Summary | |
static int |
LOCAL_FORWARDING
Constant used to specify whether the event relates to a local forwarding |
static int |
REMOTE_FORWARDING
Constant used to specify whether the event relates to a remote forwarding |
static int |
X11_FORWARDING
Constant used to specify whether the event relates to an X11 forwarding |
Method Summary | |
void |
channelClosed(int type,
java.lang.String key,
SshTunnel tunnel)
A forwarding channel has been closed. |
void |
channelFailure(int type,
java.lang.String key,
java.lang.String host,
int port,
boolean isConnected,
java.lang.Throwable t)
A forwarding channel failed to open. |
void |
channelOpened(int type,
java.lang.String key,
SshTunnel tunnel)
A forwarding channel has been opened. |
void |
forwardingStarted(int type,
java.lang.String key,
java.lang.String host,
int port)
The forwarding has been started and any connections made to the listening address (which is specified by the key in the format 'ipaddress:port') will be forwarded over the connection to the host and port specified. |
void |
forwardingStopped(int type,
java.lang.String key,
java.lang.String host,
int port)
The forwarding identifed by the key has been stopped. |
Field Detail |
public static final int LOCAL_FORWARDING
public static final int REMOTE_FORWARDING
public static final int X11_FORWARDING
Method Detail |
public void forwardingStarted(int type, java.lang.String key, java.lang.String host, int port)
type
- key
- host
- port
- public void forwardingStopped(int type, java.lang.String key, java.lang.String host, int port)
type
- key
- host
- port
- public void channelFailure(int type, java.lang.String key, java.lang.String host, int port, boolean isConnected, java.lang.Throwable t)
type
- key
- host
- port
- isConnected
- t
- public void channelOpened(int type, java.lang.String key, SshTunnel tunnel)
type
- key
- tunnel
- public void channelClosed(int type, java.lang.String key, SshTunnel tunnel)
type
- key
- tunnel
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |