|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rakeshv.mail.WebMailBean
public class WebMailBean
A bean that encapsulates access to the javax.mail
package. This bean is used by all the JSP
pages and Servlets that constitute the web-mail application to
interact with the mail server. This bean throws only
the custom MailException when errors are encountered, that
cannot be handled safely.
Copyright 2002, Rakesh Vidyadharan
| Field Summary | |
|---|---|
private java.lang.String |
address
The internet address that is used in the users email address. |
private AddressBook |
addressBook
The AddressBook that belongs to the user. |
private java.lang.String |
attachmentRootDirectory
The root directory under which all user-specific
mail attachment files are stored. |
private static com.stevesoft.pat.Regex[] |
bodyRegex
Regex to replace line breaks in message bodies with HTML line breaks. |
private static int |
bodyRegexLength
int that holds the length of the
bodyRegex array. |
private javax.mail.Folder |
currentFolder
A reference to the current folder which the user is viewing. |
private javax.mail.Message |
currentMessage
The Message instance that represents the currently
open message. |
private int |
currentMessageNumber
The message number of the message currently open. |
private java.lang.String |
defaultFrom
The complete email address of the user that will be used when sending mail. |
private java.lang.String |
deletedIndicator
The path to the image that will be used to indicate
messages that have been deleted. |
private java.lang.String[] |
folderNames
The names of the mail folders available to the user. |
private javax.mail.Folder[] |
folders
The mail folders that are available to the user. |
private java.lang.String |
host
The hostname of the mail server. |
private java.lang.String |
inboxFolder
The name of the default inbox folder in the mail
store. |
private MailPreferences |
mailPreferences
The MailPreferences for the user. |
private java.lang.String |
mailTransportProtocol
The mail transport protocol that is used for sending mail. |
private java.lang.String |
newIndicator
The path to the image that will be used to indicate
messages that are new. |
private int |
port
The port on which the mail server listens for connections. |
private java.lang.String |
protocol
The protocol that is used to access mail. |
private java.lang.String |
readIndicator
The path to the image that will be used to indicate
messages that have been read. |
private java.lang.String |
repliedIndicator
The path to the image that will be used to indicate
messages that have been replied to. |
private static com.stevesoft.pat.Regex |
replyRegex
Regex to append a > before each line in the
included body of the message used in replies. |
private java.lang.String |
sentFolderName
The name of the folder to which sent items are moved. |
private javax.mail.Session |
session
The web session for the user using the webmail service. |
private static com.stevesoft.pat.Regex |
singleQuoteRegex
Regex to replace single quotes (') in addresses
with double quotes ("). |
private javax.mail.Store |
store
The email store to which the user is attempting to connect. |
private java.lang.String |
trashFolderName
The name of the folder to which deleted items are
moved. |
private java.lang.String |
user
The username of the user logging on to the mail server. |
private java.lang.String |
webserverAttachmentPath
The webserver path used to access files stored under
attachmentRootDirectory. |
| Constructor Summary | |
|---|---|
WebMailBean()
Default constructor. |
|
| Method Summary | |
|---|---|
private void |
cacheFolders()
Cache all of the folders underneath the default folder. |
private void |
close()
Closes the connection to the host/server. |
private void |
connect(java.lang.String password)
Attempt to get a connection to the specified host
on the specified port as the specified
user using the specified password. |
private void |
copyMessages(javax.servlet.http.HttpServletRequest request)
Copy the specified message(s) from the currentFolder to
the specified folder. |
private void |
createAttachmentFile(javax.mail.BodyPart bodyPart,
java.lang.String directoryName)
Creates a temporary file under the specified root
directory. |
private void |
createFolder(java.lang.String folder)
Create the specified folder. |
private void |
deleteAttachments(java.lang.String directoryName)
Deletes the temporary attachment files stored under the specified root directory. |
private void |
deleteFolder(java.lang.String folder)
Delete the specified folder. |
private void |
deleteMessages(javax.servlet.http.HttpServletRequest request)
Delete the specified message(s) from the currentFolder. |
private void |
destroyOldMessages(javax.mail.Folder folder,
int numberOfDays)
Delete all messages older than numberOfDays days in the specified folder. |
void |
doCommand(javax.servlet.http.HttpServletRequest request)
Perform a specialised command. |
private javax.mail.Folder |
findFolder(java.lang.String folderName)
Finds a folder based on name out of cached array of folders. |
private javax.mail.Message[] |
findMessages(java.lang.String[] messageNumbers)
Turn an array of message numbers as strings into an array of messages from the current folder. |
java.lang.String |
getAddress()
Return the value/reference of the address. |
AddressBook |
getAddressBook()
Return the value/reference of the addressBook. |
java.lang.String |
getAttachmentRootDirectory()
Return the value/reference of the attachmentRootDirectory. |
java.lang.String |
getDeletedIndicator()
Return the value/reference of the deletedIndicator. |
java.lang.String |
getFolderName()
Get the current folder's name. |
java.lang.String[] |
getFolderNames()
Get the names of all the cached folders. |
java.lang.String |
getFrom()
The FROM address is . |
java.lang.String |
getHost()
Return the value/reference of the host. |
java.lang.String |
getInboxFolder()
Return the value/reference of the inboxFolder. |
MailPreferences |
getMailPreferences()
Return the value/reference of the mailPreferences. |
java.lang.String |
getMailTransportProtocol()
Return the value/reference of the mailTransportProtocol. |
int |
getMessageCount()
Return the number of messages in the current folder. |
java.lang.String |
getMessageFlag()
Get the Flags for the message. |
java.lang.String |
getMessageFrom()
Get the current message's first from address or reply-to address as a string. |
int |
getMessageNumber()
Get the current message's number. |
java.lang.String |
getMessageReplyTo()
Get the current message's reply-to address as a string. |
java.lang.String |
getMessageReplyToAll()
Get the addresses of all the addressees in the message. |
java.lang.String |
getMessageSentDate()
Get the current message's sent date as a string. |
java.lang.String |
getMessageSize()
Get the current message's size as an abbreviated string. |
java.lang.String |
getMessageSubject()
Get the current message's subject. |
java.lang.String |
getMessageText()
Get the text for the message. |
java.lang.String |
getMessageTo()
Get the current message's first to address as a string. |
java.lang.String |
getNewIndicator()
Return the value/reference of the newIndicator. |
java.lang.String[] |
getOtherFolderNames()
Get the names of all the folders except for the current one. |
int |
getPort()
Return the value/reference of the port. |
java.lang.String |
getReadIndicator()
Return the value/reference of the readIndicator. |
java.lang.String |
getRepliedIndicator()
Return the value/reference of the repliedIndicator. |
java.lang.String |
getReplyText()
Get the text for the message to use to display in the reply. |
java.lang.String |
getSentFolder()
Return the value/reference of the sentFolderName. |
java.lang.String |
getTrashFolder()
Return the value/reference of the trashFolderName. |
java.lang.String |
getUser()
Return the value/reference of the user. |
java.lang.String |
getWebserverAttachmentPath()
Return the value/reference of the webserverAttachmentPath. |
void |
initialiseSession()
Initialises the session. |
boolean |
isConnected()
This can be used by JSP's to determin whether the user needs to login/re-login. |
private void |
moveMessages(javax.servlet.http.HttpServletRequest request)
Move the specified message(s) from the currentFolder to
the specified folder. |
void |
sendMessage(WriteFormParser formParser)
Send a new message. |
void |
setAddress(java.lang.String address)
Set the value of address. |
void |
setAddressBook(AddressBook addressBook)
Set the value of addressBook. |
void |
setAttachmentRootDirectory(java.lang.String attachmentRootDirectory)
Set the value of attachmentRootDirectory. |
void |
setDeletedIndicator(java.lang.String deletedIndicator)
Set the value of deletedIndicator. |
void |
setFolder(java.lang.String folderName)
Set the specified folder as the current folder. |
void |
setHost(java.lang.String host)
Set the value of host. |
void |
setInboxFolder(java.lang.String inboxFolder)
Set the value of inboxFolder. |
void |
setMailPreferences(MailPreferences mailPreferences)
Set the value of mailPreferences. |
void |
setMailTransportProtocol(java.lang.String mailTransportProtocol)
Set the value of mailTransportProtocol. |
void |
setMessage(int messageNumber)
Set the bean's current message to the specified number. |
void |
setNewIndicator(java.lang.String newIndicator)
Set the value of newIndicator. |
void |
setPassword(java.lang.String password)
Set the password for the user. |
void |
setPort(int port)
Set the value of port. |
void |
setProtocol(java.lang.String protocol)
Set the value of protocol. |
void |
setReadIndicator(java.lang.String readIndicator)
Set the value of readIndicator. |
void |
setRepliedIndicator(java.lang.String repliedIndicator)
Set the value of repliedIndicator. |
void |
setSentFolder(java.lang.String sentFolderName)
Set the value of sentFolderName. |
void |
setTrashFolder(java.lang.String trashFolderName)
Set the value of trashFolderName. |
void |
setUser(java.lang.String user)
Set the value of user. |
void |
setWebserverAttachmentPath(java.lang.String webserverAttachmentPath)
Set the value of webserverAttachmentPath. |
void |
valueBound(javax.servlet.http.HttpSessionBindingEvent event)
HttpSessionBindingListener methods. |
void |
valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
Close the store when the session ends. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String inboxFolder
inbox folder in the mail
store. This field is configured in the web.xml file for the
web application.
The following code shows one way of accessing the value defined from a servlet:
String inboxFolder = getServletContext().getInitParameter( "inboxFolder" );
private java.lang.String trashFolderName
folder to which deleted items are
moved. This field is configured in the web.xml file for the
web application.
The following code shows one way of accessing the value defined from a servlet:
String trashFolder = getServletContext().getInitParameter( "trashFolder" );
private java.lang.String sentFolderName
folder to which sent items are moved.
This field is configured in the web.xml file for the web
application.
The following code shows one way of accessing the value defined from a servlet:
String sentFolder = getServletContext().getInitParameter( "sentFolder" );
private java.lang.String attachmentRootDirectory
root directory under which all user-specific
mail attachment files are stored. This field is configured in
the web.xml file for the web application.
The following code shows one way of accessing the value defined from a servlet:
String attachmentRootDirectory = getServletContext().getInitParameter( "attachmentRootDirectory" );
private java.lang.String webserverAttachmentPath
webserver path used to access files stored under
attachmentRootDirectory. This field is configured in the
web.xml file for the web application.
The following code shows one way of accessing the value defined from a servlet:
String webserverAttachmentPath = getServletContext().getInitParameter( "webserverAttachmentPath" );
private java.lang.String protocol
The following code shows one way of accessing the value defined from a servlet:
String protocol = getServletContext().getInitParameter( "protocol" );
private java.lang.String mailTransportProtocol
The following code shows one way of accessing the value defined from a servlet:
String mailTransportProtocol = getServletContext().getInitParameter( "mailTransportProtocol" );
private java.lang.String host
The following code shows one way of accessing the value defined from a servlet:
String host = getServletContext().getInitParameter( "hostname" );
private int port
The following code shows one way of accessing the value defined from a servlet:
String portNumber = getServletContext().getInitParameter( "port" ); int port = Integer.parseInt( portNumber );
private java.lang.String address
@ symbol as well. This
field is configured in the web.xml file for the web application.
The following code shows one way of accessing the value defined from a servlet:
String address = getServletContext().getInitParameter( "address" );
private java.lang.String repliedIndicator
path to the image that will be used to indicate
messages that have been replied to. The value to use for this
field is configured in the web.xml file for the web application.
The following code shows one way of accessing the value defined from a servlet:
String image = getServletContext().getInitParameter( "repliedIndicator" );
private java.lang.String readIndicator
path to the image that will be used to indicate
messages that have been read. The value to use for this
field is configured in the web.xml file for the web application.
The following code shows one way of accessing the value defined from a servlet:
String image = getServletContext().getInitParameter( "readIndicator" );
private java.lang.String newIndicator
path to the image that will be used to indicate
messages that are new. The value to use for this
field is configured in the web.xml file for the web application.
The following code shows one way of accessing the value defined from a servlet:
String image = getServletContext().getInitParameter( "newIndicator" );
private java.lang.String deletedIndicator
path to the image that will be used to indicate
messages that have been deleted. The value to use for this
field is configured in the web.xml file for the web application.
The following code shows one way of accessing the value defined from a servlet:
String image = getServletContext().getInitParameter( "deletedIndicator" );
private javax.mail.Session session
private java.lang.String user
private java.lang.String defaultFrom
user with
address.
private javax.mail.Store store
private javax.mail.Folder[] folders
private java.lang.String[] folderNames
private javax.mail.Folder currentFolder
private int currentMessageNumber
message number of the message currently open.
private javax.mail.Message currentMessage
Message instance that represents the currently
open message.
private MailPreferences mailPreferences
MailPreferences for the user. The mail
preference settings should ideally be cached in the ServletContext
for efficiency, and then set using the mutator method setMailPreferences( MailPreferences ). This bean does not
contain any logic to create or get a reference to the user's mail
preferences. The reference to the appropriate MailPreferences
instance must be set using the mutator method.
String user = request.getParameter( "user" );
ServletContext servletContext = getServletContext();
MailPreferences mailPreferences = (MailPreferences) servletContext.getAttribute( "preferences/" + user + ".xml" );
if ( mailPreferences == null )
{
mailPreferences = MailPreferences.createMailPreferences( servletContext.getInitParameter( "addressBookDirectory" ) + "/" + user + ".xml" );
servletContext.setAttribute( "addressbooks/" + user + ".xml", mailPreferences );
}
private AddressBook addressBook
AddressBook that belongs to the user. The
address book should ideally be cached in the ServletContext for
efficiency and then set using the mutator method setAddressBook( AddressBook ). This bean does not contain any
logic to create or get a reference to the user's address book.
The reference to the appropriate address book must be set
using the mutator method setAddressBook( AddressBook ).
String user = request.getParameter( "user" );
ServletContext servletContext = getServletContext();
AddressBook addressBook = (AddressBook) servletContext.getAttribute( "addressbooks/" + user + ".xml" );
if ( addressBook == null )
{
addressBook = AddressBook.createAddressBook( servletContext.getInitParameter( "addressBookDirectory" ) + "/" + user + ".xml" );
servletContext.setAttribute( "addressbooks/" + user + ".xml", addressBook );
}
private static final com.stevesoft.pat.Regex[] bodyRegex
private static final com.stevesoft.pat.Regex replyRegex
> before each line in the
included body of the message used in replies.
private static final com.stevesoft.pat.Regex singleQuoteRegex
single quotes (') in addresses
with double quotes (").
private static int bodyRegexLength
int that holds the length of the
bodyRegex array.
| Constructor Detail |
|---|
public WebMailBean()
session.
initialiseSession()| Method Detail |
|---|
public final void initialiseSession()
session. This method should be called
only after setting the mailTransportProtocol, and the
host member variables. If the member variables mentioned
above are null, then they default to smtp
and mail.rakeshv.org respectively.
private void connect(java.lang.String password)
throws MailException
host
on the specified port as the specified
user using the specified password.
If successful, the default inboxFolder folder will be
opened.
This method also creates the trashFolderName to hold
all deleted messages, and the sentFolderName to hold all
outgoing messages if they do not already exist.
password - - The password for the user.
MailException - - If exceptions are encountered while working
with the javax.mail package.private void close()
host/server. Prior
to closing the connection, all open folders are
closed. In addition the following clean-up actions are performed:
MailPreferences.daysToKeepDeletedMessages days in
the trashFolderName are deleted.
attachmentRootDirectory are deleted.
private void destroyOldMessages(javax.mail.Folder folder,
int numberOfDays)
throws javax.mail.MessagingException
expunged from
the store. Messages older than the limiting date are found by
checking the receivedDate and sentDate
attributes of the message.
folder - - The folder from which messages are to
be removed.numberOfDays - - The limiting number of days used to
determine whether the messages are too old or not.
javax.mail.MessagingException - - If errors are encountered while
deleting the messages in the specified folder.
private void cacheFolders()
throws MailException
MailException - - If MessagingExceptions are encountered
while interacting the the mail server.private javax.mail.Folder findFolder(java.lang.String folderName)
folderName - - The name of the folder to search for.
public final void setFolder(java.lang.String folderName)
throws MailException
folderName - - The name of the folder to set as the
current folder.
MailException - - If messaging exceptions are encountered.public final java.lang.String[] getFolderNames()
public final java.lang.String[] getOtherFolderNames()
public final int getMessageCount()
public final void setMessage(int messageNumber)
messageNumber - - The number of the current message.public final int getMessageNumber()
public final java.lang.String getMessageSentDate()
public final java.lang.String getMessageFrom()
public final java.lang.String getMessageReplyTo()
, separated string, if multiple addresses
are found for the sender.
public final java.lang.String getMessageReplyToAll()
comma (,)
separated list of strings. An empty string will
be returned if a MessagingException is encountered.
public final java.lang.String getMessageTo()
public final java.lang.String getMessageSubject()
public final java.lang.String getMessageSize()
-1 if a MessagingException is
encountered while fetching the message size.
public final java.lang.String getMessageFlag()
Flags for the message. Returns the value
corresponding to each Flags.Flag
Note:If a MessagingException is encountered while
fetching the flag, this method returns readIndicator.
Note:If an unknown flag is encountered, this method
returns newIndicator.
public final java.lang.String getMessageText()
throws MailException
Get the text for the message. If the message is encoded
using the multipart MIME type, then, parts of the
message that are of type text/* will be displayed
inline, and other types of attachments will be
presented as links pointing to the temporary attachments files
that will created under attachmentRootDirectory.
Use the bodyRegex regular expression(s)
to format the body in human readable format.
MailException - - If errors that cannot be handled by this
bean are encountered.public final java.lang.String getReplyText()
Get the text for the message to use to display in the reply. This method returns an empty string if exceptions are encountered while fetching the body of the message.
Use the replyRegex regular expression(s)
to format the body in human readable format.
This only works at present if the message's primary type is "text" or if it is "multipart" and the first body part's primary type is "text".
private javax.mail.Message[] findMessages(java.lang.String[] messageNumbers)
throws javax.mail.MessagingException
messageNumbers - - The array of message numbers
which are to be operated on.
javax.mail.MessagingException - - If exceptions are encountered while
getting the messages specified by the messageNumbers.
private void createAttachmentFile(javax.mail.BodyPart bodyPart,
java.lang.String directoryName)
throws javax.mail.MessagingException,
java.io.IOException
root
directory. The attachment will be stored under
<rootDirectory>/<user>/<fileName>
bodyPart - - The Part of the message
that contains the attachment.directoryName - - The root directory
under which the attachment will be stored.
java.io.IOException - - Any errors while attempting to write to the
OutputStream are propagated back to the caller.
An IOException may also be thrown by the IMAP server
while fetching the contents of the message.
javax.mail.MessagingException - - Any errors encountered while
interacting with the IMAP server are passed back to the caller.private void deleteAttachments(java.lang.String directoryName)
root directory. The attachment are stored under
<rootDirectory>/<user>/ directory.
directoryName - - The root directory
under which the attachment will be stored.
public final void doCommand(javax.servlet.http.HttpServletRequest request)
throws MailException
Perform a specialised command. The request's parameters should contain a value named "command" and an array of message numbers called "number".
The copy and move commands need a folder name in the "to" parameter.
The send command needs from, to, cc, bcc, subject, and text parameters. It can also have a reply parameter that indicates the message should be a reply to an existing message in the current folder.
This isn't very elegant, but it is better than putting the code in a JSP.
MailException
private void copyMessages(javax.servlet.http.HttpServletRequest request)
throws MailException
currentFolder to
the specified folder.
request - - The request which contains the
information about the message(s) to be copied.
MailException - - If errors are encountered while copying
the messages.
private void moveMessages(javax.servlet.http.HttpServletRequest request)
throws MailException
currentFolder to
the specified folder.
request - - The request which contains the
information about the message(s) to be copied.
MailException - - If errors are encountered while copying
the messages.
private void deleteMessages(javax.servlet.http.HttpServletRequest request)
throws javax.mail.MessagingException,
MailException
currentFolder.
Depending upon the user preferences, the message will be deleted
permanently or moved to the trashFolderName.
Note: This method throws back the original MessagingException encountered to the calling method. The reason is to allow the caller the opportunity retry the operation if so desired.
request - - The request which contains the
information about the message(s) to be copied.
javax.mail.MessagingException - - If errors are encountered while
deleting the messages.
MailException
private void createFolder(java.lang.String folder)
throws MailException
folder - - The name of the new folder to create.
MailException - - If errors are encountered while creating
the folder.
private void deleteFolder(java.lang.String folder)
throws MailException
folder - - The name of the folder to delete.
MailException - - If errors are encountered while deleting
the folder.
public void sendMessage(WriteFormParser formParser)
throws MailException
SendHandler
class to create the new Message being created.
formParser - - The parser which has parsed
out the elements from the write.jsp html multipart form.
MailException - - If errors are encountered while parsing
the multipart form post, or sending the message.SendHandler,
WriteFormParserpublic void valueBound(javax.servlet.http.HttpSessionBindingEvent event)
valueBound in interface javax.servlet.http.HttpSessionBindingListenerpublic void valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
valueUnbound in interface javax.servlet.http.HttpSessionBindingListenerpublic final java.lang.String getInboxFolder()
inboxFolder.
public final void setInboxFolder(java.lang.String inboxFolder)
inboxFolder.
inboxFolder - - The value to set.public final java.lang.String getTrashFolder()
trashFolderName.
public final void setTrashFolder(java.lang.String trashFolderName)
trashFolderName.
trashFolderName - - The value to set.public final java.lang.String getSentFolder()
sentFolderName.
public final void setSentFolder(java.lang.String sentFolderName)
sentFolderName.
sentFolderName - - The value to set.public final java.lang.String getAttachmentRootDirectory()
attachmentRootDirectory.
public final void setAttachmentRootDirectory(java.lang.String attachmentRootDirectory)
attachmentRootDirectory.
attachmentRootDirectory - - The value to set.public final java.lang.String getWebserverAttachmentPath()
webserverAttachmentPath.
public final void setWebserverAttachmentPath(java.lang.String webserverAttachmentPath)
webserverAttachmentPath.
webserverAttachmentPath - - The value to set.public final java.lang.String getAddress()
address.
public final void setAddress(java.lang.String address)
address.
address - - The value to set.public final AddressBook getAddressBook()
addressBook.
public final void setAddressBook(AddressBook addressBook)
addressBook.
addressBook - - The value to set.public final void setProtocol(java.lang.String protocol)
protocol.
protocol - - The protocol to usepublic final java.lang.String getHost()
host.
public final void setHost(java.lang.String host)
host.
host - - The value to set.public final int getPort()
port.
public final void setPort(int port)
port.
port - - The value to set.public final java.lang.String getUser()
user.
public final void setUser(java.lang.String user)
user.
user - - The value to set.
public final void setPassword(java.lang.String password)
throws MailException
password for the user. Since
the password is sensitive, this bean does not store
the password. This is the only way that a calling JSP/Servlet
can initiate a connection to the store.
password - - The password for the user.
MailException - - If MessagingExceptions are encountered
while connecting to the mail server.connect( String )public final java.lang.String getFrom()
useraddress.
This value will be created if defaultFrom has not been
initialised for some reason.
public final boolean isConnected()
public final java.lang.String getFolderName()
public final java.lang.String getMailTransportProtocol()
mailTransportProtocol.
public final void setMailTransportProtocol(java.lang.String mailTransportProtocol)
mailTransportProtocol.
mailTransportProtocol - - The value to set.public final java.lang.String getRepliedIndicator()
repliedIndicator.
public final void setRepliedIndicator(java.lang.String repliedIndicator)
repliedIndicator.
repliedIndicator - - The value to set.public final java.lang.String getReadIndicator()
readIndicator.
public final void setReadIndicator(java.lang.String readIndicator)
readIndicator.
readIndicator - - The value to set.public final java.lang.String getNewIndicator()
newIndicator.
public final void setNewIndicator(java.lang.String newIndicator)
newIndicator.
newIndicator - - The value to set.public final java.lang.String getDeletedIndicator()
deletedIndicator.
public final void setDeletedIndicator(java.lang.String deletedIndicator)
deletedIndicator.
deletedIndicator - - The value to set.public final MailPreferences getMailPreferences()
mailPreferences.
public final void setMailPreferences(MailPreferences mailPreferences)
mailPreferences.
mailPreferences - - The value to set.
|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||