|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sssw.srv.mail.AgoMailAddressMailbox
Stores one mailbox address, as defined in RFC 822. A mailbox is a single address.
The address has a name portion and an address portion, either of which can be set or retrieved.
The toString() method writes this address in the form name<address> where name may be surrounded
by double quotes (") if necessary for quoting reasons. In AgoMailMessage
, several methods return an
Enumeration of objects. The returned objects are of type AgoMailAddressMailbox.
Constructor Summary | |
AgoMailAddressMailbox()
A constructor for the AgoMailAddressMailbox class. |
|
AgoMailAddressMailbox(String name,
String address)
A constructor for the AgoMailAddressMailbox class. |
|
AgoMailAddressMailbox(String name,
String address,
String charset)
A constructor for the AgoMailAddressMailbox class. |
Method Summary | |
String |
getAddress()
Returns the address of the mailbox or null if not set. |
String |
getName()
Returns the name of the mailbox or null if not set. |
void |
setAddress(String address)
Sets the address of the mailbox. |
void |
setName(String name)
Sets the name of the mailbox. |
void |
setName(String name,
String charset)
Sets the name and character set of the mailbox. |
String |
toString()
Returns the mailbox as a String in the form name<address>. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public AgoMailAddressMailbox()
AgoMailAddressMailbox mailbox = new AgoMailAddressMailbox();
public AgoMailAddressMailbox(String name, String address)
name
- specifies the name portion of the mailbox.address
- specifies the address portion of the mailbox.AgoMailAddressMailbox mailbox = new AgoMailAddressMailbox("Bob T. Smith","bob@company.com");
public AgoMailAddressMailbox(String name, String address, String charset)
name
- specifies the name portion of the mailbox.address
- specifies the address portion of the mailbox.charset
- specifies the charset of name.Method Detail |
public String getName()
String name = mailbox.getName();
AgoMailAddressMailbox.setName( String name )
public void setName(String name)
name
- specifies the name to assign to the mailbox.mailbox.setName("Bob T. Smith");
AgoMailAddressMailbox.setName( String name, String charset )
,
AgoMailAddressMailbox.getName()
public void setName(String name, String charset)
name
- specifies the name to assign to the mailbox.charset
- specifies the charset of the name.AgoMailAddressMailbox.getName()
,
AgoMailAddressMailbox.setName( String name )
public String getAddress()
String addr = mailbox.getAddress();
AgoMailAddressMailbox.setAddress( String address )
public void setAddress(String address)
address
- the address to assign.The address must comply with the RFC 821 address specification.
mailbox.setAddress("bob@company.com");
AgoMailAddressMailbox.getAddress()
public String toString()
If the name needs to be quoted according to RFC 822 rules, it is output
surrounded by double quotes (").
Overrides toString
in class Object.
String aString = mailbox.toString();
|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |