|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.maplesoft.client.HostInfo
Stores the required host connection information for connection to Server. Copyright 2001 Waterloo Maple Inc
| Constructor Summary | |
HostInfo()
Constructs a default HostInfo with host set to localhost and the port=14444. |
|
HostInfo(java.lang.String sHost)
Create Hostinfo for specified host |
|
HostInfo(java.lang.String sHost,
int iPort)
Create Hostinfo for specified host and port |
|
| Method Summary | |
static HostInfo |
getDefaultHostInfo()
Returns a HostInfo object representing the server that was established by the setDefaultHostInfo method. |
java.lang.String |
getHost()
Returns the host that object represents |
int |
getPort()
Returns the port number for this host |
static void |
setDefaultHostInfo(java.lang.String host)
Creates a HostInfo object containing the default host to connect to and uses the DEFAULTPORT. |
static void |
setDefaultHostInfo(java.lang.String host,
int port)
Creates a HostInfo object containing the default host and port to comnect to. |
void |
setHost(java.lang.String sHost)
Set a new host specification |
void |
setPort(int iPort)
Changes the port number for this host |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HostInfo()
public HostInfo(java.lang.String sHost)
sHost - should be name of a valid server
e.g. abc.com
public HostInfo(java.lang.String sHost,
int iPort)
sHost - should be name of a valid server
e.g. abc.comiPort - port number that server is listeninig on| Method Detail |
public void setHost(java.lang.String sHost)
sHost - name of vaild serverpublic java.lang.String getHost()
public void setPort(int iPort)
iPort - - the port numberpublic int getPort()
public static HostInfo getDefaultHostInfo()
public static void setDefaultHostInfo(java.lang.String host,
int port)
host - The name of the host (i.e. server) computerport - The TCPIP port to communicate to the hostpublic static void setDefaultHostInfo(java.lang.String host)
host - The name of the host (i.e. server) computer
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||