public interface Forwarder extends PortForwardingManager, PortForwardingEventListenerManager, PortForwardingEventListenerManagerHolder, Closeable
Modifier and Type | Method and Description |
---|---|
SshdSocketAddress |
getForwardedPort(int remotePort) |
void |
localPortForwardingCancelled(SshdSocketAddress local)
Called when the other side cancelled a remote port forward.
|
SshdSocketAddress |
localPortForwardingRequested(SshdSocketAddress local)
Called when the other side requested a remote port forward.
|
startDynamicPortForwarding, startLocalPortForwarding, startLocalPortForwarding, startRemotePortForwarding, stopDynamicPortForwarding, stopLocalPortForwarding, stopRemotePortForwarding
getBoundLocalPortForwards, getBoundRemotePortForward, getLocalForwardsBindings, getRemoteForwardsBindings, getStartedLocalPortForwards, getStartedRemotePortForwards, isLocalPortForwardingStartedForPort, isRemotePortForwardingStartedForPort
addPortForwardingEventListener, getPortForwardingEventListenerProxy, removePortForwardingEventListener
addPortForwardingEventListenerManager, getRegisteredManagers, removePortForwardingEventListenerManager
addCloseFutureListener, close, close, close, getMaxCloseWaitTime, isClosed, isClosing, isOpen, removeCloseFutureListener
SshdSocketAddress getForwardedPort(int remotePort)
remotePort
- The remote portSshdSocketAddress
that the remote port is forwarded toSshdSocketAddress localPortForwardingRequested(SshdSocketAddress local) throws IOException
local
- The request addressSshdSocketAddress
- null
if not allowed to forwardIOException
- If failed to handle requestvoid localPortForwardingCancelled(SshdSocketAddress local) throws IOException
local
- The local SshdSocketAddress
IOException
- If failed to handle requestCopyright © 2008–2024 The Apache Software Foundation. All rights reserved.