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
-
Method Summary
Modifier and TypeMethodDescriptiongetForwardedPort(int remotePort) voidCalled 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, removeCloseFutureListenerMethods inherited from interface org.apache.sshd.common.forward.PortForwardingEventListenerManager
addPortForwardingEventListener, getPortForwardingEventListenerProxy, removePortForwardingEventListenerMethods inherited from interface org.apache.sshd.common.forward.PortForwardingEventListenerManagerHolder
addPortForwardingEventListenerManager, getRegisteredManagers, removePortForwardingEventListenerManagerMethods inherited from interface org.apache.sshd.common.forward.PortForwardingInformationProvider
getBoundLocalPortForwards, getBoundRemotePortForward, getLocalForwardsBindings, getRemoteForwardsBindings, getStartedLocalPortForwards, getStartedRemotePortForwards, isLocalPortForwardingStartedForPort, isRemotePortForwardingStartedForPortMethods 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
SshdSocketAddressthat 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-nullif 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
-