Package org.apache.sshd.common.forward
Interface PortForwardingInformationProvider
- All Known Subinterfaces:
ClientSession,Forwarder,PortForwardingManager,ServerSession,Session
- All Known Implementing Classes:
AbstractClientSession,AbstractServerSession,AbstractSession,ClientSessionImpl,DefaultForwarder,ServerSessionImpl,SessionHelper
public interface PortForwardingInformationProvider
-
Method Summary
Modifier and TypeMethodDescriptiongetBoundLocalPortForwards(int port) getBoundRemotePortForward(int port) default booleanisLocalPortForwardingStartedForPort(int port) Test if local port forwarding is starteddefault booleanisRemotePortForwardingStartedForPort(int port) Test if remote port forwarding is started
-
Method Details
-
getStartedLocalPortForwards
List<SshdSocketAddress> getStartedLocalPortForwards()- Returns:
- A
Listsnapshot of the currently started local port forward bindings
-
getBoundLocalPortForwards
- Parameters:
port- The port number- Returns:
- The local bound
SshdSocketAddress-es for the port - See Also:
-
getLocalForwardsBindings
List<Map.Entry<SshdSocketAddress,SshdSocketAddress>> getLocalForwardsBindings()- Returns:
- A snapshot of the currently bound forwarded local ports as "pairs" of local/remote
SshdSocketAddress-es
-
isLocalPortForwardingStartedForPort
default boolean isLocalPortForwardingStartedForPort(int port) Test if local port forwarding is started- Parameters:
port- The local port- Returns:
trueif local port forwarding is started- See Also:
-
getStartedRemotePortForwards
NavigableSet<Integer> getStartedRemotePortForwards()- Returns:
- A
NavigableSetsnapshot of the currently started remote port forwards
-
getBoundRemotePortForward
- Parameters:
port- The port number- Returns:
- The remote bound
SshdSocketAddressfor the port -nullif none bound - See Also:
-
getRemoteForwardsBindings
List<Map.Entry<Integer,SshdSocketAddress>> getRemoteForwardsBindings()- Returns:
- A snapshot of the currently bound forwarded remote ports as "pairs" of port + bound
SshdSocketAddress
-
isRemotePortForwardingStartedForPort
default boolean isRemotePortForwardingStartedForPort(int port) Test if remote port forwarding is started- Parameters:
port- The remote port- Returns:
trueif remote port forwarding is started- See Also:
-