public class MXMechanism extends AMechanism implements SPFCheckerDNSResponseListener
Modifier and Type | Field and Description |
---|---|
static String |
REGEX
ABNF: MX = "mx" [ ":" domain-spec ] [ dual-cidr-length ]
|
DUAL_CIDR_LENGTH_REGEX, IP4_CIDR_LENGTH_REGEX, IP6_CIDR_LENGTH_REGEX, log, macroExpand
Constructor and Description |
---|
MXMechanism() |
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() |
checkAddressList, config, getAAAARecords, getARecords, getIp4cidr, getIp6cidr, toString
enableLogging, enableMacroExpand, expandHost, getDomain
public static final String REGEX
public DNSLookupContinuation checkSPF(SPFSession spfData) throws PermErrorException, TempErrorException, NeutralException, NoneException
SPFChecker
checkSPF
in interface SPFChecker
checkSPF
in class AMechanism
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 foundAMechanism.checkSPF(org.apache.james.jspf.core.SPFSession)
public DNSLookupContinuation onDNSResponse(DNSResponse response, SPFSession spfSession) throws PermErrorException, TempErrorException, NoneException, NeutralException
SPFCheckerDNSResponseListener
onDNSResponse
in interface SPFCheckerDNSResponseListener
onDNSResponse
in class AMechanism
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 detectedNoneException
- Get thrown if no Record was foundNeutralException
- Get thrown if the result should be neutralAMechanism.onDNSResponse(org.apache.james.jspf.core.DNSResponse, org.apache.james.jspf.core.SPFSession)
public String toString()
toString
in class AMechanism
AMechanism.toString()
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.