public class RedirectModifier extends GenericModifier implements SPFCheckEnabled, MacroExpandEnabled
Modifier and Type | Field and Description |
---|---|
static String |
REGEX
ABNF: redirect = "redirect" "=" domain-spec
|
log
Constructor and Description |
---|
RedirectModifier() |
Modifier and Type | Method and Description |
---|---|
protected DNSLookupContinuation |
checkSPFLogged(SPFSession spfData)
Set the host which should be used for redirection and set it in SPF1Data
so it can be accessed easy later if needed
|
void |
enableMacroExpand(MacroExpand macroExpand)
Provide component with a DNSService.
|
void |
enableSPFChecking(SPFChecker checker)
Provide component with an SPF Checker.
|
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
- if an error is in the redirect modifierTempErrorException
- if an DNS problem accurredNoneException
NeutralException
public String toString()
toString
in class Object
Object.toString()
public void enableSPFChecking(SPFChecker checker)
SPFCheckEnabled
enableSPFChecking
in interface SPFCheckEnabled
checker
- the checker. Must not be null
.SPFCheckEnabled.enableSPFChecking(org.apache.james.jspf.core.SPFChecker)
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.