public class ExpModifier extends GenericModifier implements MacroExpandEnabled, SPFCheckerDNSResponseListener
| Modifier and Type | Field and Description |
|---|---|
static String |
REGEX
ABNF: explanation = "exp" "=" domain-spec
NOTE: the last +"?" has been added to support RFC4408 ERRATA for the EXP modifier.
|
log| Constructor and Description |
|---|
ExpModifier() |
| Modifier and Type | Method and Description |
|---|---|
protected DNSLookupContinuation |
checkSPFLogged(SPFSession spfData)
Generate the explanation and set it in SPF1Data so it can be accessed
easy later if needed
|
void |
enableMacroExpand(MacroExpand macroExpand)
Provide component with a DNSService.
|
DNSLookupContinuation |
onDNSResponse(DNSResponse lookup,
SPFSession spfData)
Continue the check for SPF with the given values and the given DNSResponse
|
String |
toString() |
checkSPF, config, enableLogging, enforceSingleInstance, getHostpublic static final String REGEX
protected DNSLookupContinuation checkSPFLogged(SPFSession spfData) throws PermErrorException, TempErrorException, NeutralException, NoneException
checkSPFLogged in class GenericModifierspfData - The SPF1Data which should usedPermErrorExceptionTempErrorExceptionNoneExceptionNeutralExceptionpublic DNSLookupContinuation onDNSResponse(DNSResponse lookup, SPFSession spfData) throws PermErrorException, TempErrorException, NeutralException, NoneException
SPFCheckerDNSResponseListeneronDNSResponse in interface SPFCheckerDNSResponseListenerlookup - The DNSResponse which should be used to run the checkspfData - The SPFSession 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 foundSPFCheckerDNSResponseListener.onDNSResponse(org.apache.james.jspf.core.DNSResponse, org.apache.james.jspf.core.SPFSession)public String toString()
toString in class ObjectObject.toString()public void enableMacroExpand(MacroExpand macroExpand)
MacroExpandEnabledenableMacroExpand in interface MacroExpandEnabledmacroExpand - the macroExpand service. Must not be null.MacroExpandEnabled.enableMacroExpand(org.apache.james.jspf.core.MacroExpand)Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.