org.apache.james.jspf.core
Class SPF1Utils

java.lang.Object
  extended by org.apache.james.jspf.core.SPF1Utils

public class SPF1Utils
extends Object

Class that offer static methods to convert SPF Results and contains all possible results as static Strings.


Field Summary
static String ATTRIBUTE_SPF1_RECORD
           
static String BEST_GUESS_RECORD
           
static String DEFAULT_EXPLANATION
           
 
Constructor Summary
SPF1Utils()
           
 
Method Summary
static boolean checkFQDN(String host)
          Check for valid FQDN
static String resultToName(String result)
          Convert raw SPF results to SPF names
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_EXPLANATION

public static final String DEFAULT_EXPLANATION
See Also:
Constant Field Values

BEST_GUESS_RECORD

public static final String BEST_GUESS_RECORD
See Also:
Constant Field Values

ATTRIBUTE_SPF1_RECORD

public static final String ATTRIBUTE_SPF1_RECORD
See Also:
Constant Field Values
Constructor Detail

SPF1Utils

public SPF1Utils()
Method Detail

resultToName

public static String resultToName(String result)
Convert raw SPF results to SPF names

Parameters:
result - The result which should converted
Returns:
coverted result

checkFQDN

public static boolean checkFQDN(String host)
Check for valid FQDN

Parameters:
host - The hostname to check
Returns:
false or true


Copyright © 2006-2011 The Apache Software Foundation. All Rights Reserved.