Package org.apache.james.jspf.terms
Class RedirectModifier
java.lang.Object
org.apache.james.jspf.terms.GenericModifier
org.apache.james.jspf.terms.RedirectModifier
- All Implemented Interfaces:
MacroExpandEnabled
,SPFCheckEnabled
,SPFChecker
,ConfigurationEnabled
,Modifier
public class RedirectModifier
extends GenericModifier
implements SPFCheckEnabled, MacroExpandEnabled
This class represent the redirect modifier
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 neededvoid
enableMacroExpand
(MacroExpand macroExpand) Provide component with a DNSService.void
enableSPFChecking
(SPFChecker checker) Provide component with an SPF Checker.toString()
Methods inherited from class org.apache.james.jspf.terms.GenericModifier
checkSPF, config, enforceSingleInstance, getHost
-
Field Details
-
REGEX
ABNF: redirect = "redirect" "=" domain-spec- See Also:
-
-
Constructor Details
-
RedirectModifier
public RedirectModifier()
-
-
Method Details
-
checkSPFLogged
protected DNSLookupContinuation checkSPFLogged(SPFSession spfData) throws PermErrorException, TempErrorException, NeutralException, NoneException Set the host which should be used for redirection and set it in SPF1Data so it can be accessed easy later if needed- Specified by:
checkSPFLogged
in classGenericModifier
- Parameters:
spfData
- The SPF1Data which should used- Returns:
- the result of this processing
- Throws:
PermErrorException
- if an error is in the redirect modifierTempErrorException
- if an DNS problem accurredNoneException
NeutralException
-
toString
-
enableSPFChecking
Description copied from interface:SPFCheckEnabled
Provide component with an SPF Checker.- Specified by:
enableSPFChecking
in interfaceSPFCheckEnabled
- Parameters:
checker
- the checker. Must not benull
.- See Also:
-
enableMacroExpand
Description copied from interface:MacroExpandEnabled
Provide component with a DNSService.- Specified by:
enableMacroExpand
in interfaceMacroExpandEnabled
- Parameters:
macroExpand
- the macroExpand service. Must not benull
.- See Also:
-