Package org.apache.james.jspf.policies
Class SPFRetriever
java.lang.Object
org.apache.james.jspf.policies.SPFRetriever
- All Implemented Interfaces:
SPFChecker
- Direct Known Subclasses:
SPFStrictCheckerRetriever
Get the raw dns txt or spf entry which contains a spf entry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckSPF(SPFSession spfData) Run check for SPF with the given values.protected static StringextractSPFRecord(List<String> spfR) Return the extracted SPF-Record
-
Constructor Details
-
SPFRetriever
public SPFRetriever()
-
-
Method Details
-
extractSPFRecord
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:SPFCheckerRun check for SPF with the given values.- Specified by:
checkSPFin interfaceSPFChecker- Parameters:
spfData- The SPF1Data which should be used to run the check- Throws:
PermErrorException- Get thrown if an error was detectedTempErrorException- Get thrown if a DNS problem was detectedNeutralException- Get thrown if the result should be neutralNoneException- Get thrown if no Record was foundNoneException- See Also:
-