All Packages Class Hierarchy This Package Previous Next Index
Class semper.comm.ComPointAddress
java.lang.Object
|
+----semper.comm.ComPointAddress
- public class ComPointAddress
- extends Object
- implements Serializable
Defines a class for an address object
similar to the java.net.URL class, but with
no restriction on the protocol field.
- Version:
- beta-4, 12.8.96
- Author:
- Mehdi Nassehi
-
ComPointAddress()
- Constructor without args
-
ComPointAddress(String, int)
- Creats a ComPointAddress.
-
ComPointAddress(String, String, int, String)
- Creats a ComPointAddress.
-
equals(ComPointAddress)
- Indicates whether some other address is "equal to" this one.
-
getHost()
- Returns the host.
-
getMailAddr()
- Returns the mailAddress.
-
getPath()
- Returns the path.
-
getPort()
- Returns the port.
-
getProtocol()
- Returns the protocol.
-
setHost(String)
- Sets the host.
-
setPath(String)
- Sets the path.
-
setPort(int)
- Sets the port.
-
toString()
- Creates an string representation of the address.
ComPointAddress
public ComPointAddress()
- Constructor without args
ComPointAddress
public ComPointAddress(String protocol,
String hostOrMailAddr,
int port,
String path)
- Creats a ComPointAddress.
- Parameters:
- protocol - the protocol to use
The possible values for protocol are sepcified in ComPointConstants by
constants with prefix COMPROTOCOL_.
- hostOrMailAddr - name of the remote host or mail address
- port - port number on the remote host
- path - the path on the remote host
ComPointAddress
public ComPointAddress(String protocol,
int port)
- Creats a ComPointAddress.
- Parameters:
- protocol - the protocol to use.
The possible values for protocol are sepcified in ComPointConstants by
constants with prefix COMPROTOCOL_.
- port - the port number at the host to connect to.
getProtocol
public String getProtocol()
- Returns the protocol.
getHost
public String getHost()
- Returns the host.
setHost
public void setHost(String host)
- Sets the host.
getMailAddr
public String getMailAddr()
- Returns the mailAddress.
setPort
public void setPort(int port)
- Sets the port.
getPort
public int getPort()
- Returns the port.
setPath
public void setPath(String path)
- Sets the path.
getPath
public String getPath()
- Returns the path.
toString
public String toString()
- Creates an string representation of the address.
- Overrides:
- toString in class Object
equals
public boolean equals(ComPointAddress address)
- Indicates whether some other address is "equal to" this one.
- Parameters:
- address - the reference address with which to compare
- Returns:
- true if this address is the same as the address argument; false
otherwise.
All Packages Class Hierarchy This Package Previous Next Index