|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Service representing the resident email client
Method Summary | |
void |
addToAddressBook(java.lang.String address,
java.lang.String name)
Add an entry to the address book. |
java.lang.String |
getUserEmailAddress()
Get the email address of the user. |
void |
setInitialMessage(java.lang.String to,
java.lang.String subject,
java.lang.String messageBody)
Set the initial recipient, subject & message body to be used when the email client starts. |
Methods inherited from interface org.dvb.internet.InternetClientService |
canRunApplication, getName, getServiceType, getSupportedClientServices, hasMultipleInstances, retrieveDetails |
Methods inherited from interface javax.tv.service.Service |
equals, getLocator, hashCode |
Method Detail |
public java.lang.String getUserEmailAddress()
java.lang.SecurityException
- if the caller does not have a UserPreferencePermission
with the name "read".public void addToAddressBook(java.lang.String address, java.lang.String name) throws EntryExistsException, java.io.IOException
address
- the address to be added to the address bookname
- the name that should be associated with that address
EntryExistsException
- if an entry with both the same name
and the same address already exists in the address book.
java.lang.IllegalArgumentException
- if the string passed as the email address does not conform
to the internet email address format
IOException
- if no more address book entries can be added
due to a lack of storage space or a limitation in the clientpublic void setInitialMessage(java.lang.String to, java.lang.String subject, java.lang.String messageBody)
to
- the address to which the email should be sentsubject
- the subject for the emailmessageBody
- the body of the message.
java.lang.NullPointerException
- if any of the to address, subject or message body are null.
java.lang.IllegalArgumentException
- if the destination address is an empty string.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |