Class ExplicitPortForwardingTracker
java.lang.Object
org.apache.sshd.client.session.forward.PortForwardingTracker
org.apache.sshd.client.session.forward.ExplicitPortForwardingTracker
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Channel
,ClientSessionHolder
,SessionContextHolder
,SessionHolder<ClientSession>
,ConnectionEndpointsIndicator
public class ExplicitPortForwardingTracker
extends PortForwardingTracker
implements ConnectionEndpointsIndicator
- Author:
- Apache MINA SSHD Project
-
Field Summary
Fields inherited from class org.apache.sshd.client.session.forward.PortForwardingTracker
open
-
Constructor Summary
ConstructorDescriptionExplicitPortForwardingTracker
(ClientSession session, boolean localForwarding, SshdSocketAddress localAddress, SshdSocketAddress remoteAddress, SshdSocketAddress boundAddress) -
Method Summary
Methods inherited from class org.apache.sshd.client.session.forward.PortForwardingTracker
getBoundAddress, getClientSession, getLocalAddress, getSession, isOpen
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.sshd.common.util.net.ConnectionEndpointsIndicator
getLocalAddress
Methods inherited from interface org.apache.sshd.common.session.SessionHolder
getSessionContext
-
Constructor Details
-
ExplicitPortForwardingTracker
public ExplicitPortForwardingTracker(ClientSession session, boolean localForwarding, SshdSocketAddress localAddress, SshdSocketAddress remoteAddress, SshdSocketAddress boundAddress)
-
-
Method Details
-
isLocalForwarding
public boolean isLocalForwarding() -
getRemoteAddress
- Specified by:
getRemoteAddress
in interfaceConnectionEndpointsIndicator
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceChannel
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
toString
- Overrides:
toString
in classPortForwardingTracker
-