Package org.apache.sshd.common.forward
Interface PortForwardingInformationProvider
-
- All Known Subinterfaces:
ClientSession
,ForwardingFilter
,PortForwardingManager
,ServerSession
,Session
- All Known Implementing Classes:
AbstractClientSession
,AbstractServerSession
,AbstractSession
,ClientSessionImpl
,DefaultForwardingFilter
,ServerSessionImpl
,SessionHelper
public interface PortForwardingInformationProvider
- Author:
- Apache MINA SSHD Project
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description SshdSocketAddress
getBoundLocalPortForward(int port)
SshdSocketAddress
getBoundRemotePortForward(int port)
List<Map.Entry<Integer,SshdSocketAddress>>
getLocalForwardsBindings()
List<Map.Entry<Integer,SshdSocketAddress>>
getRemoteForwardsBindings()
NavigableSet<Integer>
getStartedLocalPortForwards()
NavigableSet<Integer>
getStartedRemotePortForwards()
default boolean
isLocalPortForwardingStartedForPort(int port)
Test if local port forwarding is starteddefault boolean
isRemotePortForwardingStartedForPort(int port)
Test if remote port forwarding is started
-
-
-
Method Detail
-
getStartedLocalPortForwards
NavigableSet<Integer> getStartedLocalPortForwards()
- Returns:
- A
NavigableSet
snapshot of the currently started local port forwards
-
getBoundLocalPortForward
SshdSocketAddress getBoundLocalPortForward(int port)
- Parameters:
port
- The port number- Returns:
- The local bound
SshdSocketAddress
for the port -null
if none bound - See Also:
isLocalPortForwardingStartedForPort
,getStartedLocalPortForwards()
-
getLocalForwardsBindings
List<Map.Entry<Integer,SshdSocketAddress>> getLocalForwardsBindings()
- Returns:
- A snapshot of the currently bound forwarded local ports
as "pairs" of port + bound
SshdSocketAddress
-
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:
getBoundLocalPortForward
-
getStartedRemotePortForwards
NavigableSet<Integer> getStartedRemotePortForwards()
- Returns:
- A
NavigableSet
snapshot of the currently started remote port forwards
-
getBoundRemotePortForward
SshdSocketAddress getBoundRemotePortForward(int port)
- Parameters:
port
- The port number- Returns:
- The remote bound
SshdSocketAddress
for the port -null
if none bound - See Also:
isRemotePortForwardingStartedForPort
,getStartedRemotePortForwards()
-
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:
true
if remote port forwarding is started- See Also:
getBoundRemotePortForward
-
-