| java.lang.Object | ||
| ↳ | net.schmizz.sshj.connection.channel.forwarded.AbstractForwardedChannelOpener | |
| ↳ | net.schmizz.sshj.connection.channel.forwarded.RemotePortForwarder | |
Handles remote port forwarding.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| RemotePortForwarder.Forward | Represents a particular forwarding. | ||||||||||
| RemotePortForwarder.ForwardedTCPIPChannel | A forwarded-tcpip channel. |
||||||||||
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | PF_CANCEL | ||||||||||
| String | PF_REQ | ||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| listeners | |||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
net.schmizz.sshj.connection.channel.forwarded.AbstractForwardedChannelOpener
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Request forwarding from the remote host on the specified
RemotePortForwarder.Forward. | |||||||||||
Request cancellation of some forwarding.
| |||||||||||
Internal API.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
net.schmizz.sshj.connection.channel.forwarded.AbstractForwardedChannelOpener
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
net.schmizz.sshj.connection.channel.forwarded.ForwardedChannelOpener
| |||||||||||
Request forwarding from the remote host on the specified RemotePortForwarder.Forward. Forwarded connections will be handled
by supplied listener.
forward specifies as 0, the returned forward will have the correct port number as informed by remote
host.| forward | The RemotePortForwarder.Forward to put in place on remote host |
|---|---|
| listener | The listener which will next forwarded connection |
RemotePortForwarder.Forward which was put into place on the remote host| ConnectionException | if there is an error requesting the forwarding |
|---|---|
| TransportException |
Request cancellation of some forwarding.
| forward | The forward which is being cancelled |
|---|
| ConnectionException | if there is an error with the cancellation request |
|---|---|
| TransportException |
Internal API. Creates a RemotePortForwarder.ForwardedTCPIPChannel from the CHANNEL_OPEN request and calls associated
ConnectListener for that forward in a separate thread.
| buf |
|---|