|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rakeshv.BaseObject
org.rakeshv.mail.ServerPreferences
public class ServerPreferences
A wrapper bean that provides easy access to all the properties configured in the application wide mail server preferences XML file. This class provides convenience methods that serve the purpose of hiding the complexity of the XML and object model from the application.
Copyright 2004, Rakesh Vidyadharan
| Field Summary | |
|---|---|
private java.lang.String |
fileName
The fully qualified path to the file that contains the preferences. |
private org.rakeshv.xml.mail.MailServerPreferences |
mailServerPreferences
The reference to the MailServerPreferences object
that is wrapped by this object. |
| Fields inherited from class org.rakeshv.BaseObject |
|---|
END_OF_LINE |
| Constructor Summary | |
|---|---|
ServerPreferences()
Default constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
getAttachmentRootDirectory()
Wrapper method that returns the attachmentRootDirectory
element value. |
java.lang.String |
getConnectionProtocol()
Wrapper method that returns the connectionProtocol
element value. |
java.lang.String |
getDeletedImage()
Wrapper method that returns the deletedImage
element value. |
java.util.Collection |
getDomain()
Wrapper method that returns the collection of domain
element values. |
java.lang.String |
getFileName()
Returns fileName. |
java.lang.String |
getHost()
Wrapper method that returns the host
element value. |
java.lang.String |
getInboxFolder()
Wrapper method that returns the inboxFolder
element value. |
org.rakeshv.xml.mail.MailServerPreferences |
getMailServerPreferences()
Returns mailServerPreferences. |
java.lang.String |
getMailTransportProtocol()
Wrapper method that returns the mailTransportProtocol
element value. |
java.lang.String |
getNewImage()
Wrapper method that returns the newImage
element value. |
int |
getPort()
Wrapper method that returns the port
element value. |
java.lang.String |
getReadImage()
Wrapper method that returns the readImage
element value. |
java.lang.String |
getRepliedImage()
Wrapper method that returns the repliedImage
element value. |
java.lang.String |
getWebserverAttachmentPath()
Wrapper method that returns the webserverAttachmentPath
element value. |
void |
setFileName(java.lang.String fileName)
Set fileName. |
void |
setMailServerPreferences(org.rakeshv.xml.mail.MailServerPreferences mailServerPreferences)
Set mailServerPreferences. |
| Methods inherited from class org.rakeshv.BaseObject |
|---|
printCollection, printMap, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String fileName
private org.rakeshv.xml.mail.MailServerPreferences mailServerPreferences
MailServerPreferences object
that is wrapped by this object.
| Constructor Detail |
|---|
public ServerPreferences()
| Method Detail |
|---|
public final java.lang.String getFileName()
fileName.
public final void setFileName(java.lang.String fileName)
throws MailException
fileName. After setting the fileName, create the
appropriate instance of mailServerPreferences with the
contents of the specified file.
fileName - The value to set.
MailException - If errors are encountered while reading or
parsing the file.public final org.rakeshv.xml.mail.MailServerPreferences getMailServerPreferences()
mailServerPreferences.
public final void setMailServerPreferences(org.rakeshv.xml.mail.MailServerPreferences mailServerPreferences)
mailServerPreferences.
mailServerPreferences - The value to set.public final java.lang.String getConnectionProtocol()
connectionProtocol
element value.
public final int getPort()
port
element value.
public final java.lang.String getMailTransportProtocol()
mailTransportProtocol
element value.
public final java.lang.String getHost()
host
element value.
public final java.util.Collection getDomain()
domain
element values.
public final java.lang.String getInboxFolder()
inboxFolder
element value.
public final java.lang.String getAttachmentRootDirectory()
attachmentRootDirectory
element value.
public final java.lang.String getWebserverAttachmentPath()
webserverAttachmentPath
element value.
public final java.lang.String getDeletedImage()
deletedImage
element value.
public final java.lang.String getNewImage()
newImage
element value.
public final java.lang.String getReadImage()
readImage
element value.
public final java.lang.String getRepliedImage()
repliedImage
element value.
|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||