|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary
java.util.Hashtable
java.util.Properties
org.alltimeflashdreamer.mailwebform.GlobalProperties
Title: GlobalProperties
Description: Reloadable implementation of the java.util.Properties class,
ready to return certain properties through specific accessor methods.
Nested Class Summary |
Nested classes inherited from class java.util.Hashtable |
|
Field Summary |
Fields inherited from class java.util.Properties |
defaults |
Constructor Summary | |
(package private) |
GlobalProperties(File propertyFile)
Reads the contents of the specified property file into the internal list of properties. |
Method Summary | |
(package private) boolean |
checkReload(File propertyFile)
Checks whether the save date of the property file has changed or not. |
String |
getErrorURL()
Returns the global setting for the site that is shown in case of an unsuccessful delivery of the generated mail; may be unset. |
String |
getSMTPHost()
Returns the global setting for the smtp server's host name. |
int |
getSMTPPort()
Returns the global setting for the smtp server's port value. |
String |
getSpamErrorURL()
Returns the global setting for the site that is shown in case of an illegal calling of the application (by hackers or spammers); may be unset. |
String |
getSuccessURL()
Returns the global setting for the site that is shown in case of a successful delivery of the generated mail; may be unset. |
(package private) void |
setErrorURL(String sErrorURL)
Adds or replaces the stored value for the error URL. |
(package private) void |
setSMTPHost(String sSMTPHost)
Adds or replaces the stored value for the SMTP host. |
(package private) void |
setSMTPPort(int iSMTPPort)
Adds or replaces the stored value for the SMTP port. |
(package private) void |
setSpamErrorURL(String sSpamErrorURL)
Adds or replaces the stored value for the spam error URL. |
(package private) void |
setSuccessURL(String sSuccessURL)
Adds or replaces the stored value for the success URL. |
Methods inherited from class java.util.Properties |
getProperty, getProperty, list, list, load, propertyNames, save, setProperty, store |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
GlobalProperties(File propertyFile) throws IOException
propertyFile
- the file containing the properties, as specified by
the java.util.Properties class
IOException
- if the reading of the file fails somehowcheckReload(java.io.File)
Method Detail |
boolean checkReload(File propertyFile) throws IOException
propertyFile
- the file containing the properties, as specified by
the java.util.Properties class
IOException
- if the reading of the file fails somehowpublic String getSMTPHost()
void setSMTPHost(String sSMTPHost)
sSMTPHost
- the (new) SMTP host name to be storedpublic int getSMTPPort()
void setSMTPPort(int iSMTPPort)
iSMTPPort
- the (new) SMTP port number to be storedpublic String getSuccessURL()
void setSuccessURL(String sSuccessURL)
sSuccessURL
- the (new) success URL to be storedpublic String getErrorURL()
void setErrorURL(String sErrorURL)
sErrorURL
- the (new) error URL to be storedpublic String getSpamErrorURL()
void setSpamErrorURL(String sSpamErrorURL)
sSpamErrorURL
- the (new) spam error URL to be stored
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |