public class ExistsMechanism extends GenericMechanism implements SPFCheckerDNSResponseListener
| Modifier and Type | Field and Description |
|---|---|
static String |
REGEX
ABNF: exists = "exists" ":" domain-spec
|
DUAL_CIDR_LENGTH_REGEX, IP4_CIDR_LENGTH_REGEX, IP6_CIDR_LENGTH_REGEX, log, macroExpand| Constructor and Description |
|---|
ExistsMechanism() |
| Modifier and Type | Method and Description |
|---|---|
DNSLookupContinuation |
checkSPF(SPFSession spfData)
Run check for SPF with the given values.
|
DNSLookupContinuation |
onDNSResponse(DNSResponse response,
SPFSession spfSession)
Continue the check for SPF with the given values and the given DNSResponse
|
String |
toString() |
config, enableLogging, enableMacroExpand, expandHost, getDomainpublic static final String REGEX
public DNSLookupContinuation checkSPF(SPFSession spfData) throws PermErrorException, TempErrorException, NeutralException, NoneException
SPFCheckercheckSPF in interface SPFCheckerspfData - The SPF1Data which should be used to run the checkPermErrorException - 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 foundSPFChecker.checkSPF(org.apache.james.jspf.core.SPFSession)public DNSLookupContinuation onDNSResponse(DNSResponse response, SPFSession spfSession) throws PermErrorException, TempErrorException
SPFCheckerDNSResponseListeneronDNSResponse in interface SPFCheckerDNSResponseListenerresponse - The DNSResponse which should be used to run the checkspfSession - The SPFSession which should be used to run the checkPermErrorException - Get thrown if an error was detectedTempErrorException - Get thrown if a DNS problem was detectedSPFCheckerDNSResponseListener.onDNSResponse(org.apache.james.jspf.core.DNSResponse, org.apache.james.jspf.core.SPFSession)public String toString()
toString in class ObjectObject.toString()Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.