Package org.apache.james.jspf.terms
Class IncludeMechanism
java.lang.Object
org.apache.james.jspf.terms.IncludeMechanism
- All Implemented Interfaces:
MacroExpandEnabled,SPFCheckEnabled,SPFChecker,ConfigurationEnabled,Mechanism
public class IncludeMechanism
extends Object
implements Mechanism, ConfigurationEnabled, SPFCheckEnabled, MacroExpandEnabled
This class represent the incude mechanism
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckSPF(SPFSession spfData) Run check for SPF with the given values.voidconfig(Configuration params) ConfigurationvoidenableMacroExpand(MacroExpand macroExpand) Provide component with a DNSService.voidenableSPFChecking(SPFChecker checker) Provide component with an SPF Checker.protected StringgetHost()toString()
-
Field Details
-
REGEX
ABNF: include = "include" ":" domain-spec- See Also:
-
host
-
-
Constructor Details
-
IncludeMechanism
public IncludeMechanism()
-
-
Method Details
-
checkSPF
public DNSLookupContinuation checkSPF(SPFSession spfData) throws PermErrorException, TempErrorException, NoneException, NeutralException Description copied from interface:SPFCheckerRun check for SPF with the given values.- Specified by:
checkSPFin interfaceSPFChecker- Parameters:
spfData- The SPF1Data which should be used to run the check- Throws:
PermErrorException- Get thrown if an error was detectedTempErrorException- Get thrown if a DNS problem was detectedNoneException- Get thrown if no Record was foundNoneExceptionNeutralException- Get thrown if the result should be neutral- See Also:
-
config
Description copied from interface:ConfigurationEnabledConfiguration- Specified by:
configin interfaceConfigurationEnabled- Parameters:
params- the ConfigurationMatch which should used- Throws:
PermErrorException- get thrown if a PermError should returned- See Also:
-
getHost
- Returns:
- Returns the host.
-
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:
-