Package org.apache.sshd.common.forward
Interface Forwarder
- All Superinterfaces:
AutoCloseable
,Channel
,Closeable
,Closeable
,PortForwardingEventListenerManager
,PortForwardingEventListenerManagerHolder
,PortForwardingInformationProvider
,PortForwardingManager
- All Known Implementing Classes:
DefaultForwarder
public interface Forwarder
extends PortForwardingManager, PortForwardingEventListenerManager, PortForwardingEventListenerManagerHolder, Closeable
TODO Add javadoc
- Author:
- Apache MINA SSHD Project
-
Method Summary
Modifier and TypeMethodDescriptiongetForwardedPort
(int remotePort) void
Called when the other side cancelled a remote port forward.Called when the other side requested a remote port forward.Methods inherited from interface org.apache.sshd.common.Closeable
addCloseFutureListener, close, close, isClosed, isClosing, isOpen, removeCloseFutureListener
Methods inherited from interface org.apache.sshd.common.forward.PortForwardingEventListenerManager
addPortForwardingEventListener, getPortForwardingEventListenerProxy, removePortForwardingEventListener
Methods inherited from interface org.apache.sshd.common.forward.PortForwardingEventListenerManagerHolder
addPortForwardingEventListenerManager, getRegisteredManagers, removePortForwardingEventListenerManager
Methods inherited from interface org.apache.sshd.common.forward.PortForwardingInformationProvider
getBoundLocalPortForwards, getBoundRemotePortForward, getLocalForwardsBindings, getRemoteForwardsBindings, getStartedLocalPortForwards, getStartedRemotePortForwards, isLocalPortForwardingStartedForPort, isRemotePortForwardingStartedForPort
Methods inherited from interface org.apache.sshd.common.forward.PortForwardingManager
startDynamicPortForwarding, startLocalPortForwarding, startLocalPortForwarding, startRemotePortForwarding, stopDynamicPortForwarding, stopLocalPortForwarding, stopRemotePortForwarding
-
Method Details
-
getForwardedPort
- Parameters:
remotePort
- The remote port- Returns:
- The local
SshdSocketAddress
that the remote port is forwarded to
-
localPortForwardingRequested
Called when the other side requested a remote port forward.- Parameters:
local
- The request address- Returns:
- The bound local
SshdSocketAddress
-null
if not allowed to forward - Throws:
IOException
- If failed to handle request
-
localPortForwardingCancelled
Called when the other side cancelled a remote port forward.- Parameters:
local
- The localSshdSocketAddress
- Throws:
IOException
- If failed to handle request
-