Package org.apache.sshd.common.forward
Interface ForwardingFilter
-
- All Superinterfaces:
java.lang.AutoCloseable,java.nio.channels.Channel,java.io.Closeable,Closeable,PortForwardingEventListenerManager,PortForwardingEventListenerManagerHolder,PortForwardingInformationProvider,PortForwardingManager
- All Known Implementing Classes:
DefaultForwardingFilter
public interface ForwardingFilter extends PortForwardingManager, PortForwardingEventListenerManager, PortForwardingEventListenerManagerHolder, Closeable
TODO Add javadoc
-
-
Field Summary
-
Fields inherited from interface org.apache.sshd.common.Closeable
CLOSE_WAIT_TIMEOUT, DEFAULT_CLOSE_WAIT_TIMEOUT
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SshdSocketAddressgetForwardedPort(int remotePort)voidlocalPortForwardingCancelled(SshdSocketAddress local)Called when the other side cancelled a remote port forward.SshdSocketAddresslocalPortForwardingRequested(SshdSocketAddress local)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
getBoundLocalPortForward, getBoundRemotePortForward, getLocalForwardsBindings, getRemoteForwardsBindings, getStartedLocalPortForwards, getStartedRemotePortForwards, isLocalPortForwardingStartedForPort, isRemotePortForwardingStartedForPort
-
Methods inherited from interface org.apache.sshd.common.forward.PortForwardingManager
startDynamicPortForwarding, startLocalPortForwarding, startRemotePortForwarding, stopDynamicPortForwarding, stopLocalPortForwarding, stopRemotePortForwarding
-
-
-
-
Method Detail
-
getForwardedPort
SshdSocketAddress getForwardedPort(int remotePort)
- Parameters:
remotePort- The remote port- Returns:
- The local
SshdSocketAddressthat the remote port is forwarded to
-
localPortForwardingRequested
SshdSocketAddress localPortForwardingRequested(SshdSocketAddress local) throws java.io.IOException
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:
java.io.IOException- If failed to handle request
-
localPortForwardingCancelled
void localPortForwardingCancelled(SshdSocketAddress local) throws java.io.IOException
Called when the other side cancelled a remote port forward.- Parameters:
local- The localSshdSocketAddress- Throws:
java.io.IOException- If failed to handle request
-
-