public interface PortForwardingInformationProvider
| Modifier and Type | Method and Description |
|---|---|
SshdSocketAddress |
getBoundLocalPortForward(int port) |
SshdSocketAddress |
getBoundRemotePortForward(int port) |
java.util.List<java.util.Map.Entry<java.lang.Integer,SshdSocketAddress>> |
getLocalForwardsBindings() |
java.util.List<java.util.Map.Entry<java.lang.Integer,SshdSocketAddress>> |
getRemoteForwardsBindings() |
java.util.NavigableSet<java.lang.Integer> |
getStartedLocalPortForwards() |
java.util.NavigableSet<java.lang.Integer> |
getStartedRemotePortForwards() |
default boolean |
isLocalPortForwardingStartedForPort(int port)
Test if local port forwarding is started
|
default boolean |
isRemotePortForwardingStartedForPort(int port)
Test if remote port forwarding is started
|
java.util.NavigableSet<java.lang.Integer> getStartedLocalPortForwards()
NavigableSet snapshot of the currently started
local port forwardsSshdSocketAddress getBoundLocalPortForward(int port)
port - The port numberSshdSocketAddress for the port
- null if none boundisLocalPortForwardingStartedForPort,
getStartedLocalPortForwards()java.util.List<java.util.Map.Entry<java.lang.Integer,SshdSocketAddress>> getLocalForwardsBindings()
SshdSocketAddressdefault boolean isLocalPortForwardingStartedForPort(int port)
port - The local porttrue if local port forwarding is startedgetBoundLocalPortForwardjava.util.NavigableSet<java.lang.Integer> getStartedRemotePortForwards()
NavigableSet snapshot of the currently started
remote port forwardsSshdSocketAddress getBoundRemotePortForward(int port)
port - The port numberSshdSocketAddress for the port
- null if none boundisRemotePortForwardingStartedForPort,
getStartedRemotePortForwards()java.util.List<java.util.Map.Entry<java.lang.Integer,SshdSocketAddress>> getRemoteForwardsBindings()
SshdSocketAddressdefault boolean isRemotePortForwardingStartedForPort(int port)
port - The remote porttrue if remote port forwarding is startedgetBoundRemotePortForward