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:
- LogEnabled, MacroExpandEnabled, SPFCheckEnabled, SPFChecker, ConfigurationEnabled, Modifier
public class RedirectModifier
- extends GenericModifier
- implements SPFCheckEnabled, MacroExpandEnabled
This class represent the redirect modifier
Field Summary |
static java.lang.String |
REGEX
ABNF: redirect = "redirect" "=" domain-spec |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
REGEX
public static final java.lang.String REGEX
- ABNF: redirect = "redirect" "=" domain-spec
- See Also:
- Constant Field Values
RedirectModifier
public RedirectModifier()
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 class GenericModifier
- Parameters:
spfData
- The SPF1Data which should used
- Returns:
- the result of this processing
- Throws:
PermErrorException
- if an error is in the redirect modifier
TempErrorException
- if an DNS problem accurred
NoneException
NeutralException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
- See Also:
Object.toString()
enableSPFChecking
public void enableSPFChecking(SPFChecker checker)
- Description copied from interface:
SPFCheckEnabled
- Provide component with an SPF Checker.
- Specified by:
enableSPFChecking
in interface SPFCheckEnabled
- Parameters:
checker
- the checker. Must not be null
.- See Also:
SPFCheckEnabled.enableSPFChecking(org.apache.james.jspf.core.SPFChecker)
enableMacroExpand
public void enableMacroExpand(MacroExpand macroExpand)
- Description copied from interface:
MacroExpandEnabled
- Provide component with a DNSService.
- Specified by:
enableMacroExpand
in interface MacroExpandEnabled
- Parameters:
macroExpand
- the macroExpand service. Must not be null
.- See Also:
MacroExpandEnabled.enableMacroExpand(org.apache.james.jspf.core.MacroExpand)
Copyright © 2006-2009 The Apache Software Foundation. All Rights Reserved.