|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.james.jspf.terms.IncludeMechanism
public class IncludeMechanism
This class represent the incude mechanism
Field Summary | |
---|---|
protected java.lang.String |
host
|
protected Logger |
log
|
static java.lang.String |
REGEX
ABNF: include = "include" ":" domain-spec |
Constructor Summary | |
---|---|
IncludeMechanism()
|
Method Summary | |
---|---|
DNSLookupContinuation |
checkSPF(SPFSession spfData)
Run check for SPF with the given values. |
void |
config(Configuration params)
Configuration |
void |
enableLogging(Logger logger)
Provide component with a logger. |
void |
enableMacroExpand(MacroExpand macroExpand)
Provide component with a DNSService. |
void |
enableSPFChecking(SPFChecker checker)
Provide component with an SPF Checker. |
protected java.lang.String |
getHost()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String REGEX
protected java.lang.String host
protected Logger log
Constructor Detail |
---|
public IncludeMechanism()
Method Detail |
---|
public DNSLookupContinuation checkSPF(SPFSession spfData) throws PermErrorException, TempErrorException, NoneException, NeutralException
SPFChecker
checkSPF
in interface SPFChecker
spfData
- The SPF1Data which should be used to run the check
PermErrorException
- Get thrown if an error was detected
TempErrorException
- Get thrown if a DNS problem was detected
NoneException
- Get thrown if no Record was found
NeutralException
- Get thrown if the result should be neutralSPFChecker.checkSPF(org.apache.james.jspf.core.SPFSession)
public void config(Configuration params) throws PermErrorException
ConfigurationEnabled
config
in interface ConfigurationEnabled
params
- the ConfigurationMatch which should used
PermErrorException
- get thrown if a PermError should returnedConfigurationEnabled.config(Configuration)
protected java.lang.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)
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public void enableSPFChecking(SPFChecker checker)
SPFCheckEnabled
enableSPFChecking
in interface SPFCheckEnabled
checker
- the checker. Must not be null
.SPFCheckEnabled.enableSPFChecking(org.apache.james.jspf.core.SPFChecker)
public void enableMacroExpand(MacroExpand macroExpand)
MacroExpandEnabled
enableMacroExpand
in interface MacroExpandEnabled
macroExpand
- the macroExpand service. Must not be null
.MacroExpandEnabled.enableMacroExpand(org.apache.james.jspf.core.MacroExpand)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |