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
SPFChecker
checkSPF
in interface SPFChecker
spfData
- 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()
Modifier
enforceSingleInstance
in interface Modifier
Modifier.enforceSingleInstance()
public void config(Configuration params) throws PermErrorException
ConfigurationEnabled
config
in interface ConfigurationEnabled
params
- the ConfigurationMatch which should usedPermErrorException
- get thrown if a PermError should returnedConfigurationEnabled.config(Configuration)
protected String getHost()
public void enableLogging(Logger logger)
LogEnabled
enableLogging
in interface LogEnabled
logger
- the logger. Must not be null
.LogEnabled.enableLogging(org.apache.james.jspf.core.Logger)
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.