|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.jspf.terms.Directive
public class Directive
A Directive is a mechanism with a resulting qualifier.
| Field Summary | |
|---|---|
static String |
ATTRIBUTE_MECHANISM_RESULT
|
protected String |
qualifier
|
| Constructor Summary | |
|---|---|
Directive(String qualifier,
Mechanism mechanism,
Logger logger)
Construct Directive |
|
| Method Summary | |
|---|---|
DNSLookupContinuation |
checkSPF(SPFSession spfSession)
Run the Directive |
Mechanism |
getMechanism()
Return the Mechanism which should be run |
String |
getQualifier()
Return the Qualifier |
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 ATTRIBUTE_MECHANISM_RESULT
protected String qualifier
| Constructor Detail |
|---|
public Directive(String qualifier,
Mechanism mechanism,
Logger logger)
throws PermErrorException
qualifier - The qualifier to use. Valid qualifier are: +, -, ~, ?mechanism - The Mechanism
PermErrorException - Get thrown if a PermError should returned| Method Detail |
|---|
public DNSLookupContinuation checkSPF(SPFSession spfSession)
throws PermErrorException,
TempErrorException,
NoneException,
NeutralException
checkSPF in interface SPFCheckerspfSession - The SPFSession to use
PermErrorException - get thrown if a PermError should returned
TempErrorException - get thrown if a TempError should returned
NoneException - get thrown if a NoneException should returned;
NeutralExceptionpublic Mechanism getMechanism()
public String getQualifier()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||