org.apache.james.jspf.policies
Class SPFRetriever
java.lang.Object
org.apache.james.jspf.policies.SPFRetriever
- All Implemented Interfaces:
- SPFChecker
- Direct Known Subclasses:
- SPFStrictCheckerRetriever
public class SPFRetriever
- extends Object
- implements SPFChecker
Get the raw dns txt or spf entry which contains a spf entry
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SPFRetriever
public SPFRetriever()
extractSPFRecord
protected static String extractSPFRecord(List<String> 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-2011 The Apache Software Foundation. All Rights Reserved.