org.apache.james.smtpserver.junkscore
Class JunkScoreConfigUtil
java.lang.Object
org.apache.james.smtpserver.junkscore.JunkScoreConfigUtil
public class JunkScoreConfigUtil
- extends java.lang.Object
Utility class for providing static method for JunkScore configuration
Method Summary |
static double |
getJunkScore(java.lang.String raw)
Return the junkscore which was supplied as raw config String |
static boolean |
isValidJunkScoreConfig(java.lang.String raw)
Return true if the given raw config is a valid JunkScore configuration String |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JUNKSCORE
public static final java.lang.String JUNKSCORE
- See Also:
- Constant Field Values
JUNKSCORE_DELIMITER
public static final java.lang.String JUNKSCORE_DELIMITER
- See Also:
- Constant Field Values
JunkScoreConfigUtil
public JunkScoreConfigUtil()
getJunkScore
public static double getJunkScore(java.lang.String raw)
throws java.lang.IllegalArgumentException
- Return the junkscore which was supplied as raw config String
- Parameters:
raw
- configuration String
- Returns:
- junkScore
- Throws:
java.lang.IllegalArgumentException
- get thrown on invalid config
isValidJunkScoreConfig
public static boolean isValidJunkScoreConfig(java.lang.String raw)
- Return true if the given raw config is a valid JunkScore configuration String
- Parameters:
raw
- configuration String
- Returns:
- true of false
Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.