public class ExplicitPortForwardingTracker extends PortForwardingTracker implements ConnectionEndpointsIndicator
| Modifier and Type | Field and Description |
|---|---|
private boolean |
localForwarding |
private SshdSocketAddress |
remoteAddress |
open| Constructor and Description |
|---|
ExplicitPortForwardingTracker(ClientSession session,
boolean localForwarding,
SshdSocketAddress localAddress,
SshdSocketAddress remoteAddress,
SshdSocketAddress boundAddress) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
SshdSocketAddress |
getRemoteAddress() |
boolean |
isLocalForwarding() |
java.lang.String |
toString() |
getBoundAddress, getClientSession, getLocalAddress, isOpenclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLocalAddressprivate final boolean localForwarding
private final SshdSocketAddress remoteAddress
public ExplicitPortForwardingTracker(ClientSession session, boolean localForwarding, SshdSocketAddress localAddress, SshdSocketAddress remoteAddress, SshdSocketAddress boundAddress)
public boolean isLocalForwarding()
public SshdSocketAddress getRemoteAddress()
getRemoteAddress in interface ConnectionEndpointsIndicatorpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface java.nio.channels.Channeljava.io.IOExceptionpublic java.lang.String toString()
toString in class PortForwardingTracker