|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.jspf.terms.IncludeMechanism
public class IncludeMechanism
This class represent the incude mechanism
| Field Summary | |
|---|---|
protected String |
host
|
protected Logger |
log
|
static 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 String |
getHost()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String REGEX
protected 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 SPFCheckerspfData - 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 ConfigurationEnabledparams - the ConfigurationMatch which should used
PermErrorException - get thrown if a PermError should returnedConfigurationEnabled.config(Configuration)protected String getHost()
public void enableLogging(Logger logger)
LogEnabled
enableLogging in interface LogEnabledlogger - the logger. Must not be null.LogEnabled.enableLogging(org.apache.james.jspf.core.Logger)public String toString()
toString in class ObjectObject.toString()public void enableSPFChecking(SPFChecker checker)
SPFCheckEnabled
enableSPFChecking in interface SPFCheckEnabledchecker - the checker. Must not be null.SPFCheckEnabled.enableSPFChecking(org.apache.james.jspf.core.SPFChecker)public void enableMacroExpand(MacroExpand macroExpand)
MacroExpandEnabled
enableMacroExpand in interface MacroExpandEnabledmacroExpand - 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 | |||||||||