Interface PortForwardingInformationProvider

All Known Subinterfaces:
ClientSession, Forwarder, PortForwardingManager, ServerSession, Session
All Known Implementing Classes:
AbstractClientSession, AbstractServerSession, AbstractSession, ClientSessionImpl, DefaultForwarder, ServerSessionImpl, SessionHelper

public interface PortForwardingInformationProvider
Author:
Apache MINA SSHD Project
  • Method Details

    • getStartedLocalPortForwards

      List<org.apache.sshd.common.util.net.SshdSocketAddress> getStartedLocalPortForwards()
      Returns:
      A List snapshot of the currently started local port forward bindings
    • getBoundLocalPortForwards

      List<org.apache.sshd.common.util.net.SshdSocketAddress> getBoundLocalPortForwards(int port)
      Parameters:
      port - The port number
      Returns:
      The local bound SshdSocketAddress-es for the port
      See Also:
    • getLocalForwardsBindings

      List<Map.Entry<org.apache.sshd.common.util.net.SshdSocketAddress, org.apache.sshd.common.util.net.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:
      true if local port forwarding is started
      See Also:
    • getStartedRemotePortForwards

      NavigableSet<Integer> getStartedRemotePortForwards()
      Returns:
      A NavigableSet snapshot of the currently started remote port forwards
    • getBoundRemotePortForward

      org.apache.sshd.common.util.net.SshdSocketAddress getBoundRemotePortForward(int port)
      Parameters:
      port - The port number
      Returns:
      The remote bound SshdSocketAddress for the port - null if none bound
      See Also:
    • getRemoteForwardsBindings

      List<Map.Entry<Integer, org.apache.sshd.common.util.net.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:
      true if remote port forwarding is started
      See Also: