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
Constructors Constructor Description ExplicitPortForwardingTracker(ClientSession session, boolean localForwarding, SshdSocketAddress localAddress, SshdSocketAddress remoteAddress, SshdSocketAddress boundAddress)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()SshdSocketAddressgetRemoteAddress()booleanisLocalForwarding()StringtoString()-
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 Detail
-
ExplicitPortForwardingTracker
public ExplicitPortForwardingTracker(ClientSession session, boolean localForwarding, SshdSocketAddress localAddress, SshdSocketAddress remoteAddress, SshdSocketAddress boundAddress)
-
-
Method Detail
-
isLocalForwarding
public boolean isLocalForwarding()
-
getRemoteAddress
public SshdSocketAddress getRemoteAddress()
- Specified by:
getRemoteAddressin interfaceConnectionEndpointsIndicator
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Throws:
IOException
-
toString
public String toString()
- Overrides:
toStringin classPortForwardingTracker
-
-