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
-
Field Summary
FieldsFields inherited from class PortForwardingTracker
open -
Constructor Summary
ConstructorsConstructorDescriptionExplicitPortForwardingTracker(ClientSession session, boolean localForwarding, SshdSocketAddress localAddress, SshdSocketAddress remoteAddress, SshdSocketAddress boundAddress) -
Method Summary
Methods inherited from class PortForwardingTracker
getBoundAddress, getClientSession, getLocalAddress, getSession, isOpenMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ConnectionEndpointsIndicator
getLocalAddressMethods inherited from interface SessionHolder
getSessionContext
-
Field Details
-
localForwarding
private final boolean localForwarding -
remoteAddress
-
-
Constructor Details
-
ExplicitPortForwardingTracker
public ExplicitPortForwardingTracker(ClientSession session, boolean localForwarding, SshdSocketAddress localAddress, SshdSocketAddress remoteAddress, SshdSocketAddress boundAddress)
-
-
Method Details
-
isLocalForwarding
public boolean isLocalForwarding() -
getRemoteAddress
- Specified by:
getRemoteAddressin interfaceConnectionEndpointsIndicator- Returns:
- the socket address of remote peer.
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Throws:
IOException
-
toString
- Overrides:
toStringin classPortForwardingTracker
-