public abstract class GenericModifier extends Object implements Modifier, ConfigurationEnabled, LogEnabled
| Constructor and Description |
|---|
GenericModifier() |
| Modifier and Type | Method and Description |
|---|---|
DNSLookupContinuation |
checkSPF(SPFSession spfData)
Run check for SPF with the given values.
|
protected abstract DNSLookupContinuation |
checkSPFLogged(SPFSession spfData) |
void |
config(Configuration params)
Configuration
|
void |
enableLogging(Logger logger)
Provide component with a logger.
|
boolean |
enforceSingleInstance()
Return true if the Modifier is only allowed once
|
protected String |
getHost() |
protected Logger log
public DNSLookupContinuation checkSPF(SPFSession spfData) throws PermErrorException, TempErrorException, NeutralException, NoneException
SPFCheckercheckSPF in interface SPFCheckerspfData - The SPF1Data which should be used to run the checkPermErrorException - 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 foundSPFChecker.checkSPF(org.apache.james.jspf.core.SPFSession)protected abstract DNSLookupContinuation checkSPFLogged(SPFSession spfData) throws PermErrorException, TempErrorException, NeutralException, NoneException
public boolean enforceSingleInstance()
ModifierenforceSingleInstance in interface ModifierModifier.enforceSingleInstance()public void config(Configuration params) throws PermErrorException
ConfigurationEnabledconfig in interface ConfigurationEnabledparams - the ConfigurationMatch which should usedPermErrorException - get thrown if a PermError should returnedConfigurationEnabled.config(Configuration)protected String getHost()
public void enableLogging(Logger logger)
LogEnabledenableLogging in interface LogEnabledlogger - the logger. Must not be null.LogEnabled.enableLogging(org.apache.james.jspf.core.Logger)Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.