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
-
MailAddress(String)
- Construct a new address from a basic string of the form:
Timothy Cox
MailAddress(String, String, String, String)
- Construct a new address from the basic parts.
-
getEMail()
- Retrieve the simplest e-mail address
-
getHostname()
- Fetch the hostname
-
getMailboxName()
- Fetch the mailbox name
-
getPersonalName()
- Fetch the personal name
-
getSourceRoute()
- Fetch the source route
-
toString()
- Retrieve the complete e-mail address
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
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
getPersonalName
public String getPersonalName()
- Fetch the personal name
- Returns:
- the mailbox name
getMailboxName
public String getMailboxName()
- Fetch the mailbox name
- Returns:
- the mailbox name
getSourceRoute
public String getSourceRoute()
- Fetch the source route
- Returns:
- the real name
getHostname
public String getHostname()
- Fetch the hostname
- Returns:
- the hostname
getEMail
public String getEMail()
- Retrieve the simplest e-mail address
- Returns:
- usable e-mail address, eg. tdac@ki.net
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