org.apache.james.jspf.policies
Class SPFRetriever

java.lang.Object
  extended by org.apache.james.jspf.policies.SPFRetriever
All Implemented Interfaces:
SPFChecker
Direct Known Subclasses:
SPFStrictCheckerRetriever

public class SPFRetriever
extends java.lang.Object
implements SPFChecker

Get the raw dns txt or spf entry which contains a spf entry


Constructor Summary
SPFRetriever()
           
 
Method Summary
 DNSLookupContinuation checkSPF(SPFSession spfData)
          Run check for SPF with the given values.
protected static java.lang.String extractSPFRecord(java.util.List spfR)
          Return the extracted SPF-Record
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SPFRetriever

public SPFRetriever()
Method Detail

extractSPFRecord

protected static java.lang.String extractSPFRecord(java.util.List spfR)
                                            throws PermErrorException
Return the extracted SPF-Record

Parameters:
spfR - the List which holds TXT/SPF - Records
Returns:
returnValue the extracted SPF-Record
Throws:
PermErrorException - if more then one SPF - Record was found in the given List.

checkSPF

public DNSLookupContinuation checkSPF(SPFSession spfData)
                               throws PermErrorException,
                                      TempErrorException,
                                      NeutralException,
                                      NoneException
Description copied from interface: SPFChecker
Run check for SPF with the given values.

Specified by:
checkSPF in interface SPFChecker
Parameters:
spfData - The SPF1Data which should be used to run the check
Throws:
PermErrorException - Get thrown if an error was detected
TempErrorException - Get thrown if a DNS problem was detected
NeutralException - Get thrown if the result should be neutral
NoneException - Get thrown if no Record was found
See Also:
SPFChecker.checkSPF(org.apache.james.jspf.core.SPFSession)


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