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.void
config
(Configuration params) Configurationvoid
enableMacroExpand
(MacroExpand macroExpand) Provide component with a DNSService.void
enableSPFChecking
(SPFChecker checker) Provide component with an SPF Checker.protected String
getHost()
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:SPFChecker
Run check for SPF with the given values.- Specified by:
checkSPF
in 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 foundNoneException
NeutralException
- Get thrown if the result should be neutral- See Also:
-
config
Description copied from interface:ConfigurationEnabled
Configuration- Specified by:
config
in 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: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:
-