|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.geclipse.core.portforward.Forward
public class Forward
Implementation of the IForward interface, provided for convenience.
Allows to set all values of a port forward.
| Constructor Summary | |
|---|---|
Forward()
Creates an empty forward. |
|
Forward(ForwardType type,
int bindPort,
java.lang.String hostname,
int port)
Creates a new 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). |
void |
setBindPort(int bindPort)
Sets the port to listens for new connections. |
void |
setHostname(java.lang.String hostname)
Sets the port of the host to forward connections to. |
void |
setPort(int port)
Sets the port on the host to connect to. |
void |
setType(ForwardType type)
Sets the type of forward (LOCAL or REMOTE). |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Forward()
public Forward(ForwardType type,
int bindPort,
java.lang.String hostname,
int port)
type - type of the forward (LOCAL or REMOTE).bindPort - port to bind on.hostname - name of the host to connect to.port - port on the host to connect to.| Method Detail |
|---|
public int getBindPort()
IForward
getBindPort in interface IForwardpublic void setBindPort(int bindPort)
bindPort - port to bind on.public java.lang.String getHostname()
IForward
getHostname in interface IForwardpublic void setHostname(java.lang.String hostname)
hostname - host to connect to.public int getPort()
IForward
getPort in interface IForwardpublic void setPort(int port)
port - port to connect to.public ForwardType getType()
IForward
getType in interface IForwardpublic void setType(ForwardType type)
type - type of the forward.
|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||