public class Directive extends Object implements SPFChecker
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTRIBUTE_MECHANISM_RESULT |
protected String |
qualifier |
| Constructor and Description |
|---|
Directive(String qualifier,
Mechanism mechanism,
Logger logger)
Construct Directive
|
| Modifier and Type | Method and Description |
|---|---|
DNSLookupContinuation |
checkSPF(SPFSession spfSession)
Run the Directive
|
Mechanism |
getMechanism()
Return the Mechanism which should be run
|
String |
getQualifier()
Return the Qualifier
|
String |
toString() |
public static final String ATTRIBUTE_MECHANISM_RESULT
protected String qualifier
public Directive(String qualifier, Mechanism mechanism, Logger logger) throws PermErrorException
qualifier - The qualifier to use. Valid qualifier are: +, -, ~, ?mechanism - The MechanismPermErrorException - Get thrown if a PermError should returnedpublic DNSLookupContinuation checkSPF(SPFSession spfSession) throws PermErrorException, TempErrorException, NoneException, NeutralException
checkSPF in interface SPFCheckerspfSession - The SPFSession to usePermErrorException - get thrown if a PermError should returnedTempErrorException - get thrown if a TempError should returnedNoneException - get thrown if a NoneException should returned;NeutralExceptionpublic Mechanism getMechanism()
public String getQualifier()
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.