g-Eclipse
Release 1.0.0

eu.geclipse.core.portforward
Interface IForward

All Known Subinterfaces:
IForwardTableEntry
All Known Implementing Classes:
Forward

public interface IForward

Interface for retrieving information about a port forward.


Method Summary
 int getBindPort()
          Returns the port number of the listening server socket.
 java.lang.String getHostname()
          Returns the name of the host where the connections get redirected to.
 int getPort()
          Port to connect on on the host where the redirections go to.
 ForwardType getType()
          Type of the port forward (either LOCAL or REMOTE).
 

Method Detail

getType

ForwardType getType()
Type of the port forward (either LOCAL or REMOTE).

Returns:
type of the port forward.

getBindPort

int getBindPort()
Returns the port number of the listening server socket. (Bound on the local host in case of a LOCAL port forward, bound on the remote host in case of a REMOTE port forward.

Returns:
the port number ob the listening socket.

getHostname

java.lang.String getHostname()
Returns the name of the host where the connections get redirected to.

Returns:
name of the host to forward connections to.

getPort

int getPort()
Port to connect on on the host where the redirections go to.

Returns:
port on the host to connect to.

g-Eclipse
Release 1.0.0