public interface PortForwardingInformationProvider
Modifier and Type | Method and Description |
---|---|
List<SshdSocketAddress> |
getBoundLocalPortForwards(int port) |
SshdSocketAddress |
getBoundRemotePortForward(int port) |
List<Map.Entry<SshdSocketAddress,SshdSocketAddress>> |
getLocalForwardsBindings() |
List<Map.Entry<Integer,SshdSocketAddress>> |
getRemoteForwardsBindings() |
List<SshdSocketAddress> |
getStartedLocalPortForwards() |
NavigableSet<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
|
List<SshdSocketAddress> getStartedLocalPortForwards()
List
snapshot of the currently started local port forward bindingsList<SshdSocketAddress> getBoundLocalPortForwards(int port)
port
- The port numberSshdSocketAddress
-es for the portisLocalPortForwardingStartedForPort
,
getStartedLocalPortForwards()
List<Map.Entry<SshdSocketAddress,SshdSocketAddress>> getLocalForwardsBindings()
SshdSocketAddress
-esdefault boolean isLocalPortForwardingStartedForPort(int port)
port
- The local porttrue
if local port forwarding is startedgetBoundLocalPortForwards
NavigableSet<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()
List<Map.Entry<Integer,SshdSocketAddress>> getRemoteForwardsBindings()
SshdSocketAddress
default boolean isRemotePortForwardingStartedForPort(int port)
port
- The remote porttrue
if remote port forwarding is startedgetBoundRemotePortForward
Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.