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 DNSLookupContinuationcheckSPFLogged(SPFSession spfData) Set the host which should be used for redirection and set it in SPF1Data so it can be accessed easy later if neededvoidenableMacroExpand(MacroExpand macroExpand) Provide component with a DNSService.voidenableSPFChecking(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:
checkSPFLoggedin 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 accurredNoneExceptionNeutralException
-
toString
-
enableSPFChecking
Description copied from interface:SPFCheckEnabledProvide component with an SPF Checker.- Specified by:
enableSPFCheckingin interfaceSPFCheckEnabled- Parameters:
checker- the checker. Must not benull.- See Also:
-
enableMacroExpand
Description copied from interface:MacroExpandEnabledProvide component with a DNSService.- Specified by:
enableMacroExpandin interfaceMacroExpandEnabled- Parameters:
macroExpand- the macroExpand service. Must not benull.- See Also:
-