Package org.apache.james.jspf.core
Interface SPFCheckerDNSResponseListener
- All Known Implementing Classes:
AMechanism,ExistsMechanism,ExpModifier,MXMechanism,PTRMechanism
public interface SPFCheckerDNSResponseListener
Listeners which should get called for a SPFCheck when the DNSResponse is aviable should implement
this interface.
-
Method Summary
Modifier and TypeMethodDescriptiononDNSResponse(DNSResponse response, SPFSession session) Continue the check for SPF with the given values and the given DNSResponse
-
Method Details
-
onDNSResponse
DNSLookupContinuation onDNSResponse(DNSResponse response, SPFSession session) throws PermErrorException, NoneException, TempErrorException, NeutralException Continue the check for SPF with the given values and the given DNSResponse- Parameters:
response- The DNSResponse which should be used to run the checksession- The SPFSession which should be used to run the check- Throws:
PermErrorException- Get thrown if an error was detectedNoneException- Get thrown if no Record was foundTempErrorException- Get thrown if a DNS problem was detectedNeutralException- Get thrown if the result should be neutral
-