|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.james.smtpserver.junkscore.JunkScoreImpl
public class JunkScoreImpl
The Object which holds all junkscore
Field Summary |
---|
Fields inherited from interface org.apache.james.smtpserver.junkscore.JunkScore |
---|
JUNK_SCORE, JUNK_SCORE_ATTR, JUNK_SCORE_COMPOSED_ATTR, JUNK_SCORE_SESSION, JUNK_SCORE_SESSION_ATTR |
Constructor Summary | |
---|---|
JunkScoreImpl()
|
Method Summary | |
---|---|
double |
getCompleteStoredScores()
Return the summary of stored scores |
double |
getStoredScore(java.lang.String key)
Return the score for the given key. |
java.util.Map |
getStoredScores()
Return a copy of the Map which contains the keys with the correspending scores |
double |
resetStoredScores()
Reset the all stored scores in the map. |
double |
setStoredScore(java.lang.String key,
double score)
Set the score for the given key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JunkScoreImpl()
Method Detail |
---|
public double getCompleteStoredScores()
JunkScore
getCompleteStoredScores
in interface JunkScore
JunkScore.getCompleteStoredScores()
public java.util.Map getStoredScores()
JunkScore
getStoredScores
in interface JunkScore
JunkScore.getStoredScores()
public double getStoredScore(java.lang.String key)
JunkScore
getStoredScore
in interface JunkScore
key
- the key to get the score for
JunkScore.getStoredScore(java.lang.String)
public double setStoredScore(java.lang.String key, double score)
JunkScore
setStoredScore
in interface JunkScore
key
- the key under which the score should be storedscore
- the store to score
JunkScore.setStoredScore(java.lang.String, double)
public double resetStoredScores()
JunkScore
resetStoredScores
in interface JunkScore
JunkScore.resetStoredScores()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |