|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.malowa.greylister.Constants
public class Constants
Constants store many runtime information for the
PostfixService. It is implemented as a Singleton to provide global
access to constant parameters. It offers the possibility to log information
to internal log files.
| Method Summary | |
|---|---|
boolean |
doSecureCleanup()
Returns if the *all* old entries in the greylist database should be deleted ( false) or only those where only one delivery
attempt occured (true). |
protected void |
finalize()
Ensures that all resources will be released |
java.lang.String |
getAcceptAction()
Returns the string which should be communicated to the Postfix daemon. |
java.sql.Connection |
getConnection()
Returns new database connection to the greylist database. |
ExternalWhitelist |
getGlobalWhitelist()
Returns the current whitelist implementation |
static Constants |
getInstance()
Returns one and only the one instance of Constants class. |
int |
getMinimumOccurrencesBeforeWhitelist()
|
SpamTrap |
getSpamTrap()
Returns current spam trap implementation |
void |
initialize()
Ensures that all constants will be initialized. |
void |
invalidate()
Releases all resources used by the connection pool and forces the Constants to be initialized again. |
void |
logDebug(java.lang.String message)
Logs debugging message to log file. |
void |
logError(java.lang.Exception exception)
Logs exception to exception log file. |
void |
logError(java.lang.String message)
Logs error message to exception log file. |
void |
logInfo(java.lang.String message)
Logs informational message to log file. |
void |
logWarn(java.lang.String message)
Logs warning message to log file. |
boolean |
useDerby()
Returns if the internal Apache Derby database should be used for greylist data. |
boolean |
useHSQLDB()
Returns if the internal HSQLDB database should be used for greylist data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void logInfo(java.lang.String message)
message - public void logWarn(java.lang.String message)
message - public void logDebug(java.lang.String message)
message - public void logError(java.lang.Exception exception)
exception - public void logError(java.lang.String message)
message - public static Constants getInstance()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic void initialize()
public void invalidate()
public java.sql.Connection getConnection()
throws java.sql.SQLException
java.sql.SQLException - if no connection could be establishedpublic SpamTrap getSpamTrap()
public java.lang.String getAcceptAction()
access(5) Postfix manual.
public ExternalWhitelist getGlobalWhitelist()
public boolean useDerby()
public boolean useHSQLDB()
public boolean doSecureCleanup()
false) or only those where only one delivery
attempt occured (true).
public int getMinimumOccurrencesBeforeWhitelist()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||