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, getHostpublic static final String REGEX
protected DNSLookupContinuation checkSPFLogged(SPFSession spfData) throws PermErrorException, TempErrorException, NeutralException, NoneException
checkSPFLogged in class GenericModifierspfData - The SPF1Data which should usedPermErrorException - if an error is in the redirect modifierTempErrorException - if an DNS problem accurredNoneExceptionNeutralExceptionpublic String toString()
toString in class ObjectObject.toString()public void enableSPFChecking(SPFChecker checker)
SPFCheckEnabledenableSPFChecking in interface SPFCheckEnabledchecker - the checker. Must not be null.SPFCheckEnabled.enableSPFChecking(org.apache.james.jspf.core.SPFChecker)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.