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, getDomain
public static final String REGEX
public DNSLookupContinuation checkSPF(SPFSession spfData) throws PermErrorException, TempErrorException, NeutralException, NoneException
SPFChecker
checkSPF
in interface SPFChecker
spfData
- 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
SPFCheckerDNSResponseListener
onDNSResponse
in interface SPFCheckerDNSResponseListener
response
- 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 Object
Object.toString()
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.