Package org.apache.james.jspf.terms
Class GenericModifier
java.lang.Object
org.apache.james.jspf.terms.GenericModifier
- All Implemented Interfaces:
SPFChecker,ConfigurationEnabled,Modifier
- Direct Known Subclasses:
ExpModifier,RedirectModifier
This abstract class represent a gerneric modifier
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckSPF(SPFSession spfData) Run check for SPF with the given values.protected abstract DNSLookupContinuationcheckSPFLogged(SPFSession spfData) voidconfig(Configuration params) ConfigurationbooleanReturn true if the Modifier is only allowed onceprotected StringgetHost()
-
Constructor Details
-
GenericModifier
public GenericModifier()
-
-
Method Details
-
checkSPF
public DNSLookupContinuation checkSPF(SPFSession spfData) throws PermErrorException, TempErrorException, NeutralException, NoneException 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 detectedNeutralException- Get thrown if the result should be neutralNoneException- Get thrown if no Record was foundNoneException- See Also:
-
checkSPFLogged
protected abstract DNSLookupContinuation checkSPFLogged(SPFSession spfData) throws PermErrorException, TempErrorException, NeutralException, NoneException -
enforceSingleInstance
public boolean enforceSingleInstance()Description copied from interface:ModifierReturn true if the Modifier is only allowed once- Specified by:
enforceSingleInstancein interfaceModifier- Returns:
- true if only one instance of this modifier is allowed
- 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.
-