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.

Constructor Index

 o MailAddress(String, String, String, String)
Construct an MailAddress from the four strings present in the IMAP 4 protocol.

Method Index

 o getHostname()
Fetch the hostname of a MailAddress
 o getMailboxName()
Fetch the mailbox name of a MailAddress
 o getPersonalName()
Fetch the personal name of a MailAddress.
 o getSourceRoute()
Fetch the source route of a MailAddress.
 o toString()
Convert to a string to make debugging a little easier.

Constructors

 o 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

Methods

 o 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"
 o getMailboxName
  public String getMailboxName()
Fetch the mailbox name of a MailAddress
Returns:
string with the mailbox name of the address i.e. "iansmith"
 o 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
 o getHostname
  public String getHostname()
Fetch the hostname of a MailAddress
Returns:
string with the hostname of the address i.e. "cc.gatech.edu"
 o 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