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, getHost
public static final String REGEX
protected DNSLookupContinuation checkSPFLogged(SPFSession spfData) throws PermErrorException, TempErrorException, NeutralException, NoneException
checkSPFLogged
in class GenericModifier
spfData
- The SPF1Data which should usedPermErrorException
TempErrorException
NoneException
NeutralException
public DNSLookupContinuation onDNSResponse(DNSResponse lookup, SPFSession spfData) throws PermErrorException, TempErrorException, NeutralException, NoneException
SPFCheckerDNSResponseListener
onDNSResponse
in interface SPFCheckerDNSResponseListener
lookup
- 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 Object
Object.toString()
public void enableMacroExpand(MacroExpand macroExpand)
MacroExpandEnabled
enableMacroExpand
in interface MacroExpandEnabled
macroExpand
- 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.