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 DNSLookupContinuation
checkSPFLogged
(SPFSession spfData) void
config
(Configuration params) Configurationboolean
Return true if the Modifier is only allowed onceprotected String
getHost()
-
Constructor Details
-
GenericModifier
public GenericModifier()
-
-
Method Details
-
checkSPF
public DNSLookupContinuation checkSPF(SPFSession spfData) throws PermErrorException, TempErrorException, NeutralException, NoneException 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 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:Modifier
Return true if the Modifier is only allowed once- Specified by:
enforceSingleInstance
in interfaceModifier
- Returns:
- true if only one instance of this modifier is allowed
- 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.
-