Class com.tdac.mail.MailAddress
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.tdac.mail.MailAddress

java.lang.Object
   |
   +----com.tdac.mail.MailAddress

public class MailAddress
extends Object
This is the base class used to represent e-mail address
Version:
1.0, 11/11/96
Author:
Timothy D. A. Cox

Constructor Index

 o MailAddress(String)
Construct a new address from a basic string of the form: Timothy Cox  o MailAddress(String, String, String, String)
Construct a new address from the basic parts.

Method Index

 o getEMail()
Retrieve the simplest e-mail address
 o getHostname()
Fetch the hostname
 o getMailboxName()
Fetch the mailbox name
 o getPersonalName()
Fetch the personal name
 o getSourceRoute()
Fetch the source route
 o toString()
Retrieve the complete e-mail address

Constructors

 o MailAddress
  public MailAddress(String addr)
Construct a new address from a basic string of the form: Timothy Cox . Only the actual e-mail address is stored.
Parameters:
addr - string containing an e-mail address
 o MailAddress
  public MailAddress(String pname,
                     String rname,
                     String mname,
                     String host)
Construct a new address from the basic parts.
Parameters:
pname - personal name
rname - source path
mname - mailbox name
host - host name

Methods

 o getPersonalName
  public String getPersonalName()
Fetch the personal name
Returns:
the mailbox name
 o getMailboxName
  public String getMailboxName()
Fetch the mailbox name
Returns:
the mailbox name
 o getSourceRoute
  public String getSourceRoute()
Fetch the source route
Returns:
the real name
 o getHostname
  public String getHostname()
Fetch the hostname
Returns:
the hostname
 o getEMail
  public String getEMail()
Retrieve the simplest e-mail address
Returns:
usable e-mail address, eg. tdac@ki.net
 o toString
  public String toString()
Retrieve the complete e-mail address
Returns:
the full e-mail address. eg. Timothy Cox tdac@ki.net
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index