Top Fields Constructors Methods
org.apache.sshd.client.session.forward

public Class ExplicitPortForwardingTracker

extends PortForwardingTracker
implements ConnectionEndpointsIndicator
Class Inheritance
All Implemented Interfaces
org.apache.sshd.common.util.net.ConnectionEndpointsIndicator
Imports
java.io.IOException, java.util.Objects, org.apache.sshd.client.session.ClientSession, org.apache.sshd.common.forward.PortForwardingManager, org.apache.sshd.common.util.net.ConnectionEndpointsIndicator, .SshdSocketAddress

Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
private final boolean
private final SshdSocketAddress
Inherited from org.apache.sshd.client.session.forward.PortForwardingTracker:
open

Constructor Summary

AccessConstructor and Description
public
ExplicitPortForwardingTracker(ClientSession session, boolean localForwarding, SshdSocketAddress localAddress, SshdSocketAddress remoteAddress, SshdSocketAddress boundAddress)

Method Summary

Modifier and TypeMethod and Description
public void
close()

Implements java.nio.channels.Channel.close.

Closes this channel.

public SshdSocketAddress
public boolean
public String
toString()

Overrides org.apache.sshd.client.session.forward.PortForwardingTracker.toString.

Returns a string representation of the object.

Inherited from org.apache.sshd.client.session.forward.PortForwardingTracker:
getBoundAddressgetClientSessiongetLocalAddressgetSessionisOpen

Field Detail

localForwardingback to summary
private final boolean localForwarding
remoteAddressback to summary
private final SshdSocketAddress remoteAddress

Constructor Detail

ExplicitPortForwardingTrackerback to summary
public ExplicitPortForwardingTracker(ClientSession session, boolean localForwarding, SshdSocketAddress localAddress, SshdSocketAddress remoteAddress, SshdSocketAddress boundAddress)

Method Detail

closeback to summary
public void close() throws IOException

Implements java.nio.channels.Channel.close.

Doc from java.nio.channels.Channel.close.

Closes this channel.

After a channel is closed, any further attempt to invoke I/O operations upon it will cause a ClosedChannelException to be thrown.

If this channel is already closed then invoking this method has no effect.

This method may be invoked at any time. If some other thread has already invoked it, however, then another invocation will block until the first invocation is complete, after which it will return without effect.

Annotations
@Override
Exceptions
IOException:
If an I/O error occurs
getRemoteAddressback to summary
public SshdSocketAddress getRemoteAddress()

Implements org.apache.sshd.common.util.net.ConnectionEndpointsIndicator.getRemoteAddress.

Returns:SshdSocketAddress

Doc from org.apache.sshd.common.util.net.ConnectionEndpointsIndicator.getRemoteAddress.

the socket address of remote peer.

Annotations
@Override
isLocalForwardingback to summary
public boolean isLocalForwarding()
toStringback to summary
public String toString()

Overrides org.apache.sshd.client.session.forward.PortForwardingTracker.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override