public interface SshPortForward extends SshLifecycleComponent
SshSession#createLocalForward(String, int, String, int) and
SshSession#createRemoteForward(String, int, String, int) methods both
create instances of of this class. That object may then be used to start and
stop the actal tunell.| Modifier and Type | Field and Description |
|---|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the tunnel.
|
int |
getTimeout()
Get a timeout in milliseconds for opening the forward
|
boolean |
isOpen()
Get if the tunnel is open or closed
|
void |
open()
Open the tunnel.
|
void |
setTimeout(int timeout)
Set a timeout in milliseconds for opening the forward
|
addListener, removeListenerstatic final int LOCAL_FORWARDING
static final int REMOTE_FORWARDING
static final int X11_FORWARDING
void setTimeout(int timeout)
timeout - timeoutint getTimeout()
void open() throws SshException
open in interface SshLifecycleComponentSshException - on any error#close()}void close()
throws SshException
close in interface SshLifecycleComponentSshException - on any errorboolean isOpen()
isOpen in interface SshLifecycleComponentSshLifecycleComponent.open(),
SshLifecycleComponent.close()Copyright © 2018. All rights reserved.