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

Constructor Index

 o ComPointAddress()
Constructor without args
 o ComPointAddress(String, int)
Creats a ComPointAddress.
 o ComPointAddress(String, String, int, String)
Creats a ComPointAddress.

Method Index

 o equals(ComPointAddress)
Indicates whether some other address is "equal to" this one.
 o getHost()
Returns the host.
 o getMailAddr()
Returns the mailAddress.
 o getPath()
Returns the path.
 o getPort()
Returns the port.
 o getProtocol()
Returns the protocol.
 o setHost(String)
Sets the host.
 o setPath(String)
Sets the path.
 o setPort(int)
Sets the port.
 o toString()
Creates an string representation of the address.

Constructors

 o ComPointAddress
 public ComPointAddress()
Constructor without args

 o 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
 o 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.

Methods

 o getProtocol
 public String getProtocol()
Returns the protocol.

 o getHost
 public String getHost()
Returns the host.

 o setHost
 public void setHost(String host)
Sets the host.

 o getMailAddr
 public String getMailAddr()
Returns the mailAddress.

 o setPort
 public void setPort(int port)
Sets the port.

 o getPort
 public int getPort()
Returns the port.

 o setPath
 public void setPath(String path)
Sets the path.

 o getPath
 public String getPath()
Returns the path.

 o toString
 public String toString()
Creates an string representation of the address.

Overrides:
toString in class Object
 o 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