public class PTRMechanism extends GenericMechanism implements DNSServiceEnabled, SPFCheckerDNSResponseListener
| Modifier and Type | Field and Description |
|---|---|
static String |
REGEX
ABNF: PTR = "ptr" [ ":" domain-spec ]
|
DUAL_CIDR_LENGTH_REGEX, IP4_CIDR_LENGTH_REGEX, IP6_CIDR_LENGTH_REGEX, log, macroExpand| Constructor and Description |
|---|
PTRMechanism() |
| Modifier and Type | Method and Description |
|---|---|
DNSLookupContinuation |
checkSPF(SPFSession spfData)
Run check for SPF with the given values.
|
void |
enableDNSService(DNSService service)
Provide component with a DNSService.
|
DNSLookupContinuation |
onDNSResponse(DNSResponse response,
SPFSession spfSession)
Continue the check for SPF with the given values and the given DNSResponse
|
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 void enableDNSService(DNSService service)
DNSServiceEnabledenableDNSService in interface DNSServiceEnabledservice - the dns service. Must not be null.DNSServiceEnabled.enableDNSService(org.apache.james.jspf.core.DNSService)public DNSLookupContinuation onDNSResponse(DNSResponse response, SPFSession spfSession) throws PermErrorException, TempErrorException, NoneException, NeutralException
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 detectedNoneException - Get thrown if no Record was foundNeutralException - Get thrown if the result should be neutralSPFCheckerDNSResponseListener.onDNSResponse(org.apache.james.jspf.core.DNSResponse, org.apache.james.jspf.core.SPFSession)Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.