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, getSession, isOpen
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLocalAddress
getSessionContext
private 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 ConnectionEndpointsIndicator
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface java.nio.channels.Channel
java.io.IOException
public java.lang.String toString()
toString
in class PortForwardingTracker