Class GIT.GVU.IMAP.MailAddress
All Packages Class Hierarchy This Package Previous Next Index
Class GIT.GVU.IMAP.MailAddress
java.lang.Object
|
+----GIT.GVU.IMAP.MailAddress
- public class MailAddress
- extends Object
Class to hold a single email address in RFC 1730 format.
-
MailAddress(String, String, String, String)
- Construct an MailAddress from the four strings present in the IMAP 4
protocol.
-
getHostname()
- Fetch the hostname of a MailAddress
-
getMailboxName()
- Fetch the mailbox name of a MailAddress
-
getPersonalName()
- Fetch the personal name of a MailAddress.
-
getSourceRoute()
- Fetch the source route of a MailAddress.
-
toString()
- Convert to a string to make debugging a little easier.
MailAddress
public MailAddress(String pn,
String sr,
String mn,
String hn)
- Construct an MailAddress from the four strings present in the IMAP 4
protocol.
- Parameters:
- string - pn personal name
- string - sr source route
- string - mn mailbox name
- string - hn host name
getPersonalName
public String getPersonalName()
- Fetch the personal name of a MailAddress. Note: This might be null
if no personal name was in the message.
- Returns:
- string with the real name of the address i.e. "Ian Smith"
getMailboxName
public String getMailboxName()
- Fetch the mailbox name of a MailAddress
- Returns:
- string with the mailbox name of the address i.e. "iansmith"
getSourceRoute
public String getSourceRoute()
- Fetch the source route of a MailAddress. Note: Might be null if
it wasn't in the mail message.
- Returns:
- string with the real name of the address
getHostname
public String getHostname()
- Fetch the hostname of a MailAddress
- Returns:
- string with the hostname of the address i.e. "cc.gatech.edu"
toString
public String toString()
- Convert to a string to make debugging a little easier.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index