Top Description Methods
org.apache.sshd.common.forward

public Interface Forwarder

extends PortForwardingManager, PortForwardingEventListenerManager, PortForwardingEventListenerManagerHolder, Closeable
Known Direct Implementers
org.apache.sshd.common.forward.DefaultForwarder
Imports
java.io.IOException, org.apache.sshd.common.Closeable, org.apache.sshd.common.util.net.SshdSocketAddress

TODO Add javadoc
Author
Apache MINA SSHD Project

Method Summary

Modifier and TypeMethod and Description
public SshdSocketAddress

Returns:

The local SshdSocketAddress that the remote port is forwarded to
getForwardedPort
(int
The remote port
remotePort
)

public void
localPortForwardingCancelled(SshdSocketAddress local)

Called when the other side cancelled a remote port forward.

public SshdSocketAddress

Returns:

The bound local SshdSocketAddress - null if not allowed to forward
localPortForwardingRequested
(SshdSocketAddress
The request address
local
)

Called when the other side requested a remote port forward.

Inherited from org.apache.sshd.common.Closeable:
addCloseFutureListenerclosecloseclosegetMaxCloseWaitTimeisClosedisClosingisOpenremoveCloseFutureListener
Inherited from org.apache.sshd.common.forward.PortForwardingEventListenerManager:
addPortForwardingEventListenergetPortForwardingEventListenerProxyremovePortForwardingEventListener
Inherited from org.apache.sshd.common.forward.PortForwardingEventListenerManagerHolder:
addPortForwardingEventListenerManagergetRegisteredManagersremovePortForwardingEventListenerManager
Inherited from org.apache.sshd.common.forward.PortForwardingManager:
startDynamicPortForwardingstartLocalPortForwardingstartLocalPortForwardingstartRemotePortForwardingstopDynamicPortForwardingstopLocalPortForwardingstopRemotePortForwarding

Method Detail

getForwardedPortback to summary
public SshdSocketAddress getForwardedPort(int remotePort)
Parameters
remotePort:int

The remote port

Returns:SshdSocketAddress

The local SshdSocketAddress that the remote port is forwarded to

localPortForwardingCancelledback to summary
public void localPortForwardingCancelled(SshdSocketAddress local) throws IOException

Called when the other side cancelled a remote port forward.

Parameters
local:SshdSocketAddress

The local SshdSocketAddress

Exceptions
IOException:
If failed to handle request
localPortForwardingRequestedback to summary
public SshdSocketAddress localPortForwardingRequested(SshdSocketAddress local) throws IOException

Called when the other side requested a remote port forward.

Parameters
local:SshdSocketAddress

The request address

Returns:SshdSocketAddress

The bound local SshdSocketAddress - null if not allowed to forward

Exceptions
IOException:
If failed to handle request