org.apache.james.jspf.terms
Class RedirectModifier

java.lang.Object
  extended by org.apache.james.jspf.terms.GenericModifier
      extended by 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
 
Fields inherited from class org.apache.james.jspf.terms.GenericModifier
log
 
Constructor Summary
RedirectModifier()
           
 
Method Summary
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.
 java.lang.String toString()
           
 
Methods inherited from class org.apache.james.jspf.terms.GenericModifier
checkSPF, config, enableLogging, enforceSingleInstance, getHost
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REGEX

public static final java.lang.String REGEX
ABNF: redirect = "redirect" "=" domain-spec

See Also:
Constant Field Values
Constructor Detail

RedirectModifier

public RedirectModifier()
Method Detail

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.